Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",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.001147/0.001147, allocations: 169.2 kB / 13.64 MB, free: 1.672 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.383/1.383, allocations: 221.3 MB / 235.5 MB, free: 2.875 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.0008636/0.0008639, allocations: 92.03 kB / 286.5 MB, free: 164 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.773e-05/2.775e-05, allocations: 0 / 343.9 MB, free: 4.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09912/0.09916, allocations: 50.43 MB / 394.4 MB, free: 1.723 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3061/0.4054, allocations: 94.35 MB / 488.7 MB, free: 9.055 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.4056, allocations: 79.95 kB / 488.8 MB, free: 8.977 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05897/0.4646, allocations: 23.09 MB / 0.4999 GB, free: 1.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4646, allocations: 0 / 0.4999 GB, free: 1.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.241e-05/0.4647, allocations: 19.98 kB / 0.4999 GB, free: 1.711 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001483/0.4662, allocations: 0.9715 MB / 0.5009 GB, free: 0.6914 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.4662, allocations: 12.03 kB / 0.5009 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001387/0.4664, allocations: 122.9 kB / 0.501 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004774/0.4669, allocations: 150.7 kB / 0.5011 GB, free: 412 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.4681, allocations: 0.6835 MB / 0.5018 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.621e-05/0.4681, allocations: 62 kB / 0.5019 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.4682, allocations: 79.95 kB / 0.5019 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.4694, allocations: 0.7443 MB / 0.5027 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.725e-05/0.4694, allocations: 3.906 kB / 0.5027 GB, free: 14.76 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.035e-05/0.4695, allocations: 36 kB / 0.5027 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.4695, allocations: 20 kB / 0.5027 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008005/0.4703, allocations: 483.8 kB / 0.5032 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003925/0.4743, allocations: 3.457 MB / 0.5065 GB, free: 10.56 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003719/0.4747, allocations: 206.5 kB / 0.5067 GB, free: 10.35 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.4748, allocations: 100.8 kB / 0.5068 GB, free: 10.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.4749, allocations: 8 kB / 0.5068 GB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.4749, allocations: 38.56 kB / 0.5069 GB, free: 10.2 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 2.014e-06/0.4749, allocations: 0 / 0.5069 GB, free: 10.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=28): time 0.001236/0.4761, allocations: 0.802 MB / 0.5077 GB, free: 9.336 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.4762, allocations: 81.34 kB / 0.5077 GB, free: 9.238 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000715/0.4769, allocations: 0.6131 MB / 0.5083 GB, free: 8.621 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.477, allocations: 37.7 kB / 0.5084 GB, free: 8.578 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003162/0.4773, allocations: 0.4981 MB / 0.5089 GB, free: 8.074 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.782e-05/0.4774, allocations: 98.64 kB / 0.509 GB, free: 7.977 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.857e-05/0.4774, allocations: 12 kB / 0.509 GB, free: 7.965 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.4775, allocations: 374.8 kB / 0.5093 GB, free: 7.59 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001768/0.4777, allocations: 105.6 kB / 0.5094 GB, free: 7.488 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003316/0.4781, allocations: 396 kB / 0.5098 GB, free: 6.957 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002614/0.4783, allocations: 183.8 kB / 0.51 GB, free: 6.777 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.4783, allocations: 3.938 kB / 0.51 GB, free: 6.773 MB / 394.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008146/0.4791, allocations: 0.5832 MB / 0.5106 GB, free: 6.18 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.4792, allocations: 11.94 kB / 0.5106 GB, free: 6.168 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.4792, allocations: 11.98 kB / 0.5106 GB, free: 6.156 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001446/0.4793, allocations: 33.52 kB / 0.5106 GB, free: 6.121 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004537/0.4798, allocations: 147.8 kB / 0.5108 GB, free: 5.977 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009379/0.4808, allocations: 1.288 MB / 0.512 GB, free: 4.555 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003924/0.4812, allocations: 35.89 kB / 0.512 GB, free: 4.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.612e-05/0.4812, allocations: 32 kB / 0.5121 GB, free: 4.488 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001118/0.4813, allocations: 144.7 kB / 0.5122 GB, free: 4.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.826e-05/0.4814, allocations: 75.25 kB / 0.5123 GB, free: 4.266 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004561/0.4819, allocations: 289.7 kB / 0.5126 GB, free: 3.965 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.4819, allocations: 7.984 kB / 0.5126 GB, free: 3.957 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.4819, allocations: 3.938 kB / 0.5126 GB, free: 3.953 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.4819, allocations: 3.984 kB / 0.5126 GB, free: 3.949 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001327/0.4833, allocations: 1.047 MB / 0.5136 GB, free: 2.824 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.4833, allocations: 7.953 kB / 0.5136 GB, free: 2.816 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002802/0.4836, allocations: 68.12 kB / 0.5137 GB, free: 2.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.299e-05/0.4836, allocations: 28.84 kB / 0.5137 GB, free: 2.719 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.4837, allocations: 4 kB / 0.5137 GB, free: 2.715 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007644/0.4844, allocations: 1.268 MB / 0.5149 GB, free: 1.312 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4845, allocations: 0 / 0.5149 GB, free: 1.312 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006126/0.4851, allocations: 0.5911 MB / 0.5155 GB, free: 0.6367 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001839/0.4853, allocations: 164.3 kB / 0.5157 GB, free: 468 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.032e-05/0.4854, allocations: 11.98 kB / 0.5157 GB, free: 456 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003029/0.4857, allocations: 23.98 kB / 0.5157 GB, free: 432 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.763e-05/0.4857, allocations: 23.92 kB / 0.5157 GB, free: 408 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.4857, allocations: 12 kB / 0.5157 GB, free: 396 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005406/0.4863, allocations: 475.2 kB / 0.5162 GB, free: 15.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.292e-06/0.4863, allocations: 4 kB / 0.5162 GB, free: 15.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006317/0.4869, allocations: 195.9 kB / 0.5164 GB, free: 15.73 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001281/0.4882, allocations: 1.785 MB / 0.5181 GB, free: 13.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005983/0.4888, allocations: 428.8 kB / 0.5185 GB, free: 13.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4889, allocations: 0 / 0.5185 GB, free: 13.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002581/0.4891, allocations: 222 kB / 0.5188 GB, free: 13.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007129/0.4898, allocations: 162.9 kB / 0.5189 GB, free: 13.06 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.4918, allocations: 1.165 MB / 0.52 GB, free: 11.83 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00046/0.4923, allocations: 0.957 MB / 0.521 GB, free: 10.84 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003247/0.4926, allocations: 97.95 kB / 0.5211 GB, free: 10.74 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00034/0.493, allocations: 295.3 kB / 0.5214 GB, free: 10.45 MB / 410.7 MB Notification: Performance of SimCode: time 5.31e-07/0.493, allocations: 4 kB / 0.5214 GB, free: 10.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03186/0.5249, allocations: 16.92 MB / 0.5379 GB, free: 9.746 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000157/0.5251, allocations: 182.1 kB / 0.5381 GB, free: 9.523 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.335/2.86, allocations: 2.672 kB / 0.5381 GB, free: 9.523 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat