Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 172.4 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.424/1.424, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008367/0.0008367, allocations: 82.67 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.467e-05/2.503e-05, allocations: 4 kB / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08835/0.08839, allocations: 47.56 MB / 370.1 MB, free: 1.602 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3449/0.4334, allocations: 105.4 MB / 475.5 MB, free: 4.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/0.4336, allocations: 90.06 kB / 475.6 MB, free: 4.223 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.121/0.5547, allocations: 46.14 MB / 0.5095 GB, free: 6.852 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5547, allocations: 0 / 0.5095 GB, free: 6.852 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001406/0.5549, allocations: 59.94 kB / 0.5095 GB, free: 6.793 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.004263/0.5591, allocations: 2.255 MB / 0.5117 GB, free: 4.48 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.5592, allocations: 8.031 kB / 0.5118 GB, free: 4.473 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003928/0.5596, allocations: 308 kB / 0.512 GB, free: 4.16 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006832/0.5603, allocations: 296.7 kB / 0.5123 GB, free: 3.867 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003045/0.5633, allocations: 1.596 MB / 0.5139 GB, free: 2.211 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.5635, allocations: 156.2 kB / 0.514 GB, free: 2.055 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003204/0.5638, allocations: 216.7 kB / 0.5142 GB, free: 1.844 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00422/0.568, allocations: 2.714 MB / 0.5169 GB, free: 14.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.416e-05/0.5681, allocations: 11.89 kB / 0.5169 GB, free: 14.97 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002088/0.5683, allocations: 88 kB / 0.517 GB, free: 14.89 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001083/0.5684, allocations: 100.2 kB / 0.5171 GB, free: 14.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003511/0.5719, allocations: 2.129 MB / 0.5192 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01299/0.5849, allocations: 8.624 MB / 0.5276 GB, free: 3.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002145/0.5871, allocations: 1.694 MB / 0.5292 GB, free: 1.945 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/0.5882, allocations: 0.7849 MB / 0.53 GB, free: 1.164 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000323/0.5886, allocations: 219.1 kB / 0.5302 GB, free: 0.9141 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.954e-05/0.5886, allocations: 47.56 kB / 0.5303 GB, free: 0.8594 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 3.707e-06/0.5886, allocations: 0 / 0.5303 GB, free: 0.8594 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.226/0.8147, allocations: 5.93 MB / 0.5361 GB, free: 102.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.8148, allocations: 65.31 kB / 0.5361 GB, free: 102.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002658/0.8174, allocations: 1.234 MB / 0.5373 GB, free: 102.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000229/0.8177, allocations: 45.77 kB / 0.5374 GB, free: 102.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009277/0.8186, allocations: 1.033 MB / 0.5384 GB, free: 102.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004807/0.8191, allocations: 438.9 kB / 0.5388 GB, free: 102.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.775e-05/0.8192, allocations: 27.28 kB / 0.5388 GB, free: 102.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.8194, allocations: 364.5 kB / 0.5392 GB, free: 101.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001145/0.8205, allocations: 0.7009 MB / 0.5399 GB, free: 101.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001253/0.8218, allocations: 1.07 MB / 0.5409 GB, free: 101.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/0.8231, allocations: 0.8727 MB / 0.5417 GB, free: 101.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/0.8231, allocations: 4.75 kB / 0.5418 GB, free: 101.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.004816/0.8279, allocations: 2.504 MB / 0.5442 GB, free: 101.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.007e-05/0.828, allocations: 9 kB / 0.5442 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.524e-05/0.828, allocations: 12.72 kB / 0.5442 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001587/0.8296, allocations: 0.5801 MB / 0.5448 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001434/0.8311, allocations: 338.5 kB / 0.5451 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007196/0.8383, allocations: 6.311 MB / 0.5513 GB, free: 98.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/0.84, allocations: 110.2 kB / 0.5514 GB, free: 98.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.8401, allocations: 60.61 kB / 0.5514 GB, free: 98.52 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 154 * 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: 2 * 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 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002899/0.8404, allocations: 192 kB / 0.5516 GB, free: 98.41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002534/0.8407, allocations: 162.8 kB / 0.5518 GB, free: 98.33 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003603/0.8443, allocations: 2.284 MB / 0.554 GB, free: 98.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.8443, allocations: 14.53 kB / 0.554 GB, free: 98.12 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.805e-05/0.8443, allocations: 4.156 kB / 0.554 GB, free: 98.12 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/0.8444, allocations: 6.984 kB / 0.554 GB, free: 98.12 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007465/0.8518, allocations: 4.701 MB / 0.5586 GB, free: 96.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.316e-06/0.8519, allocations: 3.844 kB / 0.5586 GB, free: 96.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008173/0.8527, allocations: 213.3 kB / 0.5588 GB, free: 96.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001503/0.8542, allocations: 0.6324 MB / 0.5594 GB, free: 96.11 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.8543, allocations: 38.02 kB / 0.5595 GB, free: 96.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007474/0.8618, allocations: 8.053 MB / 0.5673 GB, free: 90.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.8619, allocations: 6.781 kB / 0.5674 GB, free: 90.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005112/0.867, allocations: 3.394 MB / 0.5707 GB, free: 89.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001125/0.8682, allocations: 398.3 kB / 0.571 GB, free: 88.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005082/0.8687, allocations: 34.28 kB / 0.5711 GB, free: 88.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.8699, allocations: 95.08 kB / 0.5712 GB, free: 88.72 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002684/0.8702, allocations: 101.4 kB / 0.5713 GB, free: 88.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.489e-05/0.8703, allocations: 41.41 kB / 0.5713 GB, free: 88.69 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001528/0.8718, allocations: 0.9463 MB / 0.5722 GB, free: 88.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8718, allocations: 0 / 0.5722 GB, free: 88.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002096/0.8739, allocations: 0.5215 MB / 0.5727 GB, free: 88.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 95 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005009/0.8789, allocations: 4.748 MB / 0.5774 GB, free: 85.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00328/0.8822, allocations: 2.269 MB / 0.5796 GB, free: 84.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.8823, allocations: 3.25 kB / 0.5796 GB, free: 84.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002168/0.8844, allocations: 1.463 MB / 0.581 GB, free: 83.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002328/0.8868, allocations: 374.8 kB / 0.5814 GB, free: 83.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007893/0.8947, allocations: 4.272 MB / 0.5856 GB, free: 81.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0014/0.8961, allocations: 1.86 MB / 0.5874 GB, free: 81.07 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001181/0.8973, allocations: 358.5 kB / 0.5877 GB, free: 81.03 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009288/0.8983, allocations: 0.8198 MB / 0.5885 GB, free: 80.37 MB / 410.7 MB Notification: Performance of SimCode: time 1.333e-06/0.8983, allocations: 0 / 0.5885 GB, free: 80.37 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06737/0.9657, allocations: 44.36 MB / 0.6318 GB, free: 46.5 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001686/0.9659, allocations: 202 kB / 0.632 GB, free: 46.28 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.264/4.23, allocations: 3.906 kB / 0.632 GB, free: 46.27 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat