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.001182/0.001182, allocations: 181.1 kB / 17.01 MB, free: 5.125 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.421/1.421, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.001019/0.001019, allocations: 94.98 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002961/0.0002962, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2753, allocations: 47.56 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1278/0.4032, allocations: 105.5 MB / 481.4 MB, free: 7.129 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.4035, allocations: 91.95 kB / 481.5 MB, free: 7.039 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.345/0.7485, allocations: 46.06 MB / 0.5152 GB, free: 96.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.7486, allocations: 3.406 kB / 0.5152 GB, free: 96.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001336/0.7487, allocations: 56.38 kB / 0.5152 GB, free: 96.24 MB / 378.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.004499/0.7532, allocations: 2.503 MB / 0.5177 GB, free: 94.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.7533, allocations: 7.625 kB / 0.5177 GB, free: 94.92 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003909/0.7537, allocations: 320.2 kB / 0.518 GB, free: 94.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006745/0.7543, allocations: 299.4 kB / 0.5183 GB, free: 94.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002741/0.7571, allocations: 1.607 MB / 0.5198 GB, free: 93.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.7572, allocations: 162.2 kB / 0.52 GB, free: 93.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002682/0.7575, allocations: 212.1 kB / 0.5202 GB, free: 93.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003849/0.7614, allocations: 2.784 MB / 0.5229 GB, free: 92.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.088e-05/0.7614, allocations: 7.906 kB / 0.5229 GB, free: 92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001823/0.7616, allocations: 85.34 kB / 0.523 GB, free: 91.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.682e-05/0.7617, allocations: 101 kB / 0.5231 GB, free: 91.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003167/0.7649, allocations: 2.25 MB / 0.5253 GB, free: 90.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01114/0.776, allocations: 8.623 MB / 0.5337 GB, free: 82.11 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002254/0.7783, allocations: 1.764 MB / 0.5354 GB, free: 80.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003209/0.7787, allocations: 211.3 kB / 0.5356 GB, free: 79.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.7787, allocations: 51.5 kB / 0.5357 GB, free: 79.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=104): time 3.287e-06/0.7787, allocations: 0 / 0.5357 GB, free: 79.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.01351/0.7922, allocations: 7.06 MB / 0.5426 GB, free: 72.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.7923, allocations: 64.41 kB / 0.5426 GB, free: 72.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001799/0.7941, allocations: 1.25 MB / 0.5439 GB, free: 71.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.763e-05/0.7942, allocations: 45.7 kB / 0.5439 GB, free: 71.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005784/0.7948, allocations: 1.029 MB / 0.5449 GB, free: 70.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002684/0.7951, allocations: 441.5 kB / 0.5453 GB, free: 69.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.442e-05/0.7952, allocations: 32 kB / 0.5454 GB, free: 69.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.7953, allocations: 357.9 kB / 0.5457 GB, free: 69.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/0.7963, allocations: 0.7534 MB / 0.5464 GB, free: 68.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/0.7975, allocations: 1.13 MB / 0.5476 GB, free: 67.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.7986, allocations: 0.9315 MB / 0.5485 GB, free: 66.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.7986, allocations: 0 / 0.5485 GB, free: 66.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.003693/0.8023, allocations: 2.607 MB / 0.551 GB, free: 63.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.8024, allocations: 19.95 kB / 0.551 GB, free: 63.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.273e-05/0.8024, allocations: 12 kB / 0.551 GB, free: 63.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001336/0.8037, allocations: 0.5803 MB / 0.5516 GB, free: 63.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/0.8049, allocations: 339.5 kB / 0.5519 GB, free: 62.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006289/0.8112, allocations: 6.531 MB / 0.5583 GB, free: 56.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001456/0.8127, allocations: 120 kB / 0.5584 GB, free: 56.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001649/0.8129, allocations: 63.98 kB / 0.5585 GB, free: 56.01 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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.001446/0.8143, allocations: 0.6948 MB / 0.5592 GB, free: 55.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004213/0.8147, allocations: 162 kB / 0.5593 GB, free: 55.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003896/0.8186, allocations: 2.398 MB / 0.5617 GB, free: 52.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.8187, allocations: 12 kB / 0.5617 GB, free: 52.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.8187, allocations: 4 kB / 0.5617 GB, free: 52.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.8187, allocations: 3.984 kB / 0.5617 GB, free: 52.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008253/0.827, allocations: 4.785 MB / 0.5663 GB, free: 47.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.824e-06/0.827, allocations: 4 kB / 0.5664 GB, free: 47.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000846/0.8278, allocations: 215.9 kB / 0.5666 GB, free: 47.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001476/0.8293, allocations: 0.6271 MB / 0.5672 GB, free: 47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/0.8295, allocations: 43.91 kB / 0.5672 GB, free: 46.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007384/0.8368, allocations: 8.307 MB / 0.5753 GB, free: 38.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.8369, allocations: 7.938 kB / 0.5753 GB, free: 38.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005278/0.8422, allocations: 3.526 MB / 0.5788 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0011/0.8433, allocations: 406.8 kB / 0.5792 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005448/0.8438, allocations: 27.98 kB / 0.5792 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001182/0.845, allocations: 95.91 kB / 0.5793 GB, free: 34.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002498/0.8453, allocations: 108.7 kB / 0.5794 GB, free: 33.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.133e-05/0.8454, allocations: 36 kB / 0.5794 GB, free: 33.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001647/0.847, allocations: 0.9615 MB / 0.5804 GB, free: 32.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8471, allocations: 4 kB / 0.5804 GB, free: 32.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002026/0.8491, allocations: 0.5078 MB / 0.5809 GB, free: 32.47 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 94 * 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,75.0%) 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.005461/0.8546, allocations: 4.741 MB / 0.5855 GB, free: 27.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003564/0.8581, allocations: 2.38 MB / 0.5878 GB, free: 25.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.8582, allocations: 0 / 0.5878 GB, free: 25.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002241/0.8604, allocations: 1.544 MB / 0.5893 GB, free: 23.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002199/0.8626, allocations: 378.5 kB / 0.5897 GB, free: 23.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02493/0.8876, allocations: 21.13 MB / 0.6103 GB, free: 1.449 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001985/0.8896, allocations: 1.862 MB / 0.6121 GB, free: 15.55 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001393/0.891, allocations: 354 kB / 0.6125 GB, free: 15.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001278/0.8923, allocations: 0.8272 MB / 0.6133 GB, free: 14.38 MB / 394.7 MB Notification: Performance of SimCode: time 1.232e-06/0.8924, allocations: 0 / 0.6133 GB, free: 14.38 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.277/1.169, allocations: 44.23 MB / 0.6565 GB, free: 113.1 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/1.17, allocations: 233.2 kB / 0.6567 GB, free: 112.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.136/4.305, allocations: 7.891 kB / 0.6567 GB, free: 112.8 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