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.001004/0.001004, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.566/1.566, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009852/0.000985, allocations: 86.7 kB / 262.5 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.787e-05/1.791e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0882/0.08823, allocations: 47.58 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3707/0.459, allocations: 105 MB / 468.1 MB, free: 6.777 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/0.4593, allocations: 86.95 kB / 468.2 MB, free: 6.734 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1201/0.5794, allocations: 45.54 MB / 0.5017 GB, free: 14.69 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5795, allocations: 0 / 0.5017 GB, free: 14.69 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001673/0.5797, allocations: 59.94 kB / 0.5018 GB, free: 14.63 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.005251/0.5849, allocations: 2.255 MB / 0.504 GB, free: 12.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.585, allocations: 12.03 kB / 0.504 GB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/0.586, allocations: 300.7 kB / 0.5043 GB, free: 12.01 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003082/0.5891, allocations: 1.6 MB / 0.5058 GB, free: 10.35 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.061e-05/0.5892, allocations: 68 kB / 0.5059 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002829/0.5895, allocations: 128 kB / 0.506 GB, free: 10.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003571/0.5931, allocations: 2.008 MB / 0.508 GB, free: 8.145 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003981/0.5971, allocations: 2.402 MB / 0.5103 GB, free: 5.605 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.1e-05/0.5971, allocations: 11.89 kB / 0.5103 GB, free: 5.594 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001609/0.5973, allocations: 4 kB / 0.5103 GB, free: 5.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001099/0.5974, allocations: 100.1 kB / 0.5104 GB, free: 5.488 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01296/0.6104, allocations: 8.208 MB / 0.5185 GB, free: 13.05 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002132/0.6126, allocations: 1.668 MB / 0.5201 GB, free: 11.26 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001091/0.6137, allocations: 0.7584 MB / 0.5208 GB, free: 10.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003453/0.614, allocations: 223.4 kB / 0.521 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/0.6141, allocations: 47.86 kB / 0.5211 GB, free: 10.19 MB / 410.7 MB Notification: Performance of pre-optimization done (n=106): time 3.807e-06/0.6141, allocations: 0 / 0.5211 GB, free: 10.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=127): time 0.009147/0.6233, allocations: 4.744 MB / 0.5257 GB, free: 5.395 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.6233, allocations: 64.72 kB / 0.5258 GB, free: 5.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001652/0.625, allocations: 1.025 MB / 0.5268 GB, free: 4.289 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.6251, allocations: 25.7 kB / 0.5268 GB, free: 4.258 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000767/0.6259, allocations: 1.029 MB / 0.5278 GB, free: 3.215 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003671/0.6263, allocations: 429.6 kB / 0.5282 GB, free: 2.789 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.948e-05/0.6263, allocations: 3.938 kB / 0.5282 GB, free: 2.785 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.6265, allocations: 365.9 kB / 0.5286 GB, free: 2.422 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009143/0.6274, allocations: 0.6755 MB / 0.5292 GB, free: 1.746 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.6286, allocations: 1.038 MB / 0.5302 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2429/0.8715, allocations: 0.8386 MB / 0.5311 GB, free: 104.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.899e-05/0.8716, allocations: 3.531 kB / 0.5311 GB, free: 104.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.007703/0.8794, allocations: 2.355 MB / 0.5334 GB, free: 104.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.74e-05/0.8794, allocations: 10.34 kB / 0.5334 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.542e-05/0.8795, allocations: 12.19 kB / 0.5334 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00238/0.8819, allocations: 0.5691 MB / 0.5339 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00225/0.8842, allocations: 345.2 kB / 0.5343 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/0.8952, allocations: 6.051 MB / 0.5402 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002197/0.8974, allocations: 83.86 kB / 0.5403 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004498/0.8979, allocations: 63.89 kB / 0.5403 GB, free: 102.3 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 (159): * Single equations (assignments): 156 * 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.0006531/0.8986, allocations: 141.5 kB / 0.5405 GB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005972/0.9046, allocations: 2.008 MB / 0.5424 GB, free: 102.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005407/0.9051, allocations: 151.9 kB / 0.5426 GB, free: 102 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005566/0.9107, allocations: 2.172 MB / 0.5447 GB, free: 101.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.658e-05/0.9107, allocations: 17.55 kB / 0.5447 GB, free: 101.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.015e-05/0.9108, allocations: 4.531 kB / 0.5447 GB, free: 101.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.919e-05/0.9108, allocations: 7.734 kB / 0.5447 GB, free: 101.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009076/0.9199, allocations: 4.335 MB / 0.549 GB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.9199, allocations: 3.938 kB / 0.549 GB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008769/0.9208, allocations: 214.6 kB / 0.5492 GB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001658/0.9225, allocations: 0.6274 MB / 0.5498 GB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001121/0.9226, allocations: 17.25 kB / 0.5498 GB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007689/0.9303, allocations: 7.732 MB / 0.5573 GB, free: 97.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.178e-06/0.9304, allocations: 6.75 kB / 0.5573 GB, free: 97.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005364/0.9357, allocations: 3.305 MB / 0.5606 GB, free: 96.63 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000996/0.9368, allocations: 383 kB / 0.5609 GB, free: 96.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004778/0.9372, allocations: 11.84 kB / 0.5609 GB, free: 96.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.9385, allocations: 76.16 kB / 0.561 GB, free: 96.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003159/0.9389, allocations: 109.4 kB / 0.5611 GB, free: 96.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.939, allocations: 38.17 kB / 0.5612 GB, free: 96.36 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001842/0.9408, allocations: 0.7707 MB / 0.5619 GB, free: 96.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.543e-06/0.9408, allocations: 0 / 0.5619 GB, free: 96.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002718/0.9436, allocations: 459 kB / 0.5624 GB, free: 96.01 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 (99): * Single equations (assignments): 96 * 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.007594/0.9512, allocations: 4.635 MB / 0.5669 GB, free: 93.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00465/0.9559, allocations: 2.181 MB / 0.569 GB, free: 92.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.9559, allocations: 0 / 0.569 GB, free: 92.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003224/0.9592, allocations: 1.418 MB / 0.5704 GB, free: 91.78 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002865/0.9621, allocations: 296.4 kB / 0.5707 GB, free: 91.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01222/0.9743, allocations: 4.14 MB / 0.5747 GB, free: 90.07 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002028/0.9764, allocations: 1.862 MB / 0.5765 GB, free: 89.16 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002085/0.9785, allocations: 350 kB / 0.5769 GB, free: 89.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0014/0.9799, allocations: 0.8182 MB / 0.5777 GB, free: 88.46 MB / 410.7 MB Notification: Performance of SimCode: time 1.032e-06/0.9799, allocations: 4 kB / 0.5777 GB, free: 88.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09423/1.074, allocations: 37.7 MB / 0.6145 GB, free: 66.58 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/1.074, allocations: 173.2 kB / 0.6147 GB, free: 66.39 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.089/4.163, allocations: 3.938 kB / 0.6147 GB, free: 66.38 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