Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 174.9 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 221.3 MB / 235.5 MB, free: 2.871 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009444/0.0009442, allocations: 86.84 kB / 286.5 MB, free: 176 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.068e-05/3.079e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09591/0.09597, allocations: 50.43 MB / 394.4 MB, free: 1.734 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3341/0.4301, allocations: 110.4 MB / 0.4929 GB, free: 9.023 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/0.4305, allocations: 83.95 kB / 0.493 GB, free: 8.941 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1433/0.5738, allocations: 55.26 MB / 0.547 GB, free: 1.289 MB / 426.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.5738, allocations: 0 / 0.547 GB, free: 1.289 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001687/0.574, allocations: 71.92 kB / 0.547 GB, free: 1.219 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.21/0.7841, allocations: 2.651 MB / 0.5496 GB, free: 97.37 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.037e-05/0.7841, allocations: 10.09 kB / 0.5496 GB, free: 97.37 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001231/0.7854, allocations: 365.2 kB / 0.55 GB, free: 97.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001499/0.7869, allocations: 357.9 kB / 0.5503 GB, free: 97.15 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004948/0.7918, allocations: 1.931 MB / 0.5522 GB, free: 96.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002129/0.7921, allocations: 186.5 kB / 0.5524 GB, free: 96.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005971/0.7927, allocations: 250.7 kB / 0.5526 GB, free: 96.81 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006979/0.7997, allocations: 3.324 MB / 0.5559 GB, free: 96.35 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.761e-05/0.7998, allocations: 11.78 kB / 0.5559 GB, free: 96.35 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003011/0.8001, allocations: 114.8 kB / 0.556 GB, free: 96.35 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000145/0.8003, allocations: 112.7 kB / 0.5561 GB, free: 96.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005713/0.806, allocations: 2.688 MB / 0.5587 GB, free: 96.31 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02222/0.8283, allocations: 10.91 MB / 0.5694 GB, free: 93.47 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003355/0.8317, allocations: 2.407 MB / 0.5717 GB, free: 92.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001913/0.8336, allocations: 1.052 MB / 0.5728 GB, free: 92.12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003952/0.8341, allocations: 137.5 kB / 0.5729 GB, free: 92.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/0.8341, allocations: 52.31 kB / 0.5729 GB, free: 91.97 MB / 426.7 MB Notification: Performance of pre-optimization done (n=136): time 3.998e-06/0.8341, allocations: 8.328 kB / 0.5729 GB, free: 91.97 MB / 426.7 MB Notification: Performance of matching and sorting (n=150): time 0.01033/0.8445, allocations: 5.487 MB / 0.5783 GB, free: 89.73 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.525e-05/0.8446, allocations: 93.77 kB / 0.5784 GB, free: 89.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002965/0.8475, allocations: 1.562 MB / 0.5799 GB, free: 89.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002371/0.8478, allocations: 51.3 kB / 0.58 GB, free: 88.99 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008138/0.8486, allocations: 1.222 MB / 0.5812 GB, free: 88.06 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006105/0.8493, allocations: 0.4943 MB / 0.5816 GB, free: 87.68 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.8494, allocations: 36.56 kB / 0.5817 GB, free: 87.65 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.8496, allocations: 371.4 kB / 0.582 GB, free: 87.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/0.851, allocations: 0.8204 MB / 0.5828 GB, free: 87.01 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001501/0.8525, allocations: 1.283 MB / 0.5841 GB, free: 86.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001536/0.854, allocations: 1.014 MB / 0.5851 GB, free: 85.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.485e-05/0.854, allocations: 3.844 kB / 0.5851 GB, free: 85.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004541/0.8586, allocations: 2.799 MB / 0.5878 GB, free: 84.81 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009897/0.8596, allocations: 5.578 MB / 0.5933 GB, free: 78.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.988e-05/0.8597, allocations: 15.34 kB / 0.5933 GB, free: 78.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001477/0.8611, allocations: 0.6704 MB / 0.5939 GB, free: 78.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/0.8626, allocations: 371.8 kB / 0.5943 GB, free: 78.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007583/0.8702, allocations: 8.268 MB / 0.6024 GB, free: 72.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/0.8721, allocations: 114.2 kB / 0.6025 GB, free: 72.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003184/0.8724, allocations: 71.33 kB / 0.6025 GB, free: 72.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/0.8724, allocations: 2.844 kB / 0.6025 GB, free: 72.86 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004423/0.8769, allocations: 2.61 MB / 0.6051 GB, free: 71.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.885e-05/0.8769, allocations: 10.91 kB / 0.6051 GB, free: 71.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001446/0.8784, allocations: 0.6794 MB / 0.6058 GB, free: 71.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001391/0.8798, allocations: 363.9 kB / 0.6061 GB, free: 71.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007336/0.8871, allocations: 8.262 MB / 0.6142 GB, free: 65.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/0.8892, allocations: 111.4 kB / 0.6143 GB, free: 65.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003065/0.8895, allocations: 74.09 kB / 0.6144 GB, free: 65.83 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0006112/0.8901, allocations: 204.1 kB / 0.6145 GB, free: 65.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000616/0.8907, allocations: 203.6 kB / 0.6147 GB, free: 65.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004365/0.8951, allocations: 2.56 MB / 0.6172 GB, free: 64.53 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.8952, allocations: 19.72 kB / 0.6173 GB, free: 64.53 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.8952, allocations: 3.344 kB / 0.6173 GB, free: 64.53 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.808e-05/0.8952, allocations: 10.28 kB / 0.6173 GB, free: 64.53 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009402/0.9046, allocations: 5.359 MB / 0.6225 GB, free: 62.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/0.9047, allocations: 3.969 kB / 0.6225 GB, free: 62.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/0.9057, allocations: 231.6 kB / 0.6227 GB, free: 62.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001502/0.9073, allocations: 0.6903 MB / 0.6234 GB, free: 62.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001193/0.9074, allocations: 39.86 kB / 0.6234 GB, free: 62.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007938/0.9153, allocations: 9.77 MB / 0.633 GB, free: 54.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.9154, allocations: 3.25 kB / 0.633 GB, free: 54.91 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005358/0.9208, allocations: 3.866 MB / 0.6368 GB, free: 51.75 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001464/0.9223, allocations: 470.6 kB / 0.6372 GB, free: 51.32 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006875/0.923, allocations: 35.84 kB / 0.6372 GB, free: 51.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001551/0.9245, allocations: 92.52 kB / 0.6373 GB, free: 51.22 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003764/0.925, allocations: 125.2 kB / 0.6375 GB, free: 51.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/0.9251, allocations: 44 kB / 0.6375 GB, free: 51.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002384/0.9275, allocations: 1.195 MB / 0.6387 GB, free: 50.03 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.9275, allocations: 0 / 0.6387 GB, free: 50.03 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004102/0.9316, allocations: 1.046 MB / 0.6397 GB, free: 48.99 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.005294/0.9369, allocations: 5.318 MB / 0.6449 GB, free: 44.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005379/0.9423, allocations: 4.491 MB / 0.6493 GB, free: 39.86 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.9424, allocations: 0 / 0.6493 GB, free: 39.86 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00194/0.9443, allocations: 1.706 MB / 0.6509 GB, free: 38.26 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002998/0.9473, allocations: 0.5771 MB / 0.6515 GB, free: 37.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01039/0.9577, allocations: 5.209 MB / 0.6566 GB, free: 33.24 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001729/0.9595, allocations: 2.155 MB / 0.6587 GB, free: 31.53 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002736/0.9623, allocations: 0.8777 MB / 0.6595 GB, free: 30.97 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001099/0.9634, allocations: 0.9573 MB / 0.6605 GB, free: 30.09 MB / 426.7 MB Notification: Performance of SimCode: time 9.72e-07/0.9634, allocations: 4 kB / 0.6605 GB, free: 30.08 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3135/1.277, allocations: 64.98 MB / 0.7239 GB, free: 97.44 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/1.277, allocations: 210 kB / 0.7241 GB, free: 97.21 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.853/5.13, allocations: 0 / 0.7241 GB, free: 97.21 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat