Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",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.001664/0.001664, allocations: 177 kB / 8.7 MB, free: 384 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.46/1.46, allocations: 205.3 MB / 214.4 MB, free: 1.734 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.0007671/0.000767, allocations: 82.7 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.381e-05/1.398e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07375/0.07378, allocations: 47.59 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.287/0.3608, allocations: 99.49 MB / 462.7 MB, free: 12.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.3611, allocations: 86.94 kB / 462.7 MB, free: 12.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0757/0.4368, allocations: 30.45 MB / 493.2 MB, free: 3.434 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4369, allocations: 0 / 493.2 MB, free: 3.434 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.11e-05/0.4369, allocations: 28 kB / 493.2 MB, free: 3.406 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002222/0.4392, allocations: 1.364 MB / 494.6 MB, free: 1.98 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.4392, allocations: 12.03 kB / 494.6 MB, free: 1.969 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005283/0.4397, allocations: 198.1 kB / 494.8 MB, free: 1.773 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001385/0.4411, allocations: 0.8519 MB / 495.6 MB, free: 0.875 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.4413, allocations: 83.83 kB / 495.7 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.4414, allocations: 71.91 kB / 495.8 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001127/0.4426, allocations: 0.633 MB / 496.4 MB, free: 80 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.4441, allocations: 0.9238 MB / 497.4 MB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.09e-05/0.4441, allocations: 7.984 kB / 497.4 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.829e-05/0.4442, allocations: 0 / 497.4 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.104e-05/0.4442, allocations: 31.94 kB / 497.4 MB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005024/0.4492, allocations: 3.724 MB / 0.4894 GB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.4505, allocations: 0.5218 MB / 0.4899 GB, free: 10.58 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00032/0.4508, allocations: 220.2 kB / 0.4901 GB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.462e-05/0.4508, allocations: 12.55 kB / 0.4901 GB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004043/0.4513, allocations: 250 kB / 0.4903 GB, free: 10.1 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 2.274e-06/0.4513, allocations: 0 / 0.4903 GB, free: 10.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.002285/0.4536, allocations: 1.407 MB / 0.4917 GB, free: 8.633 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001921/0.4538, allocations: 487 kB / 0.4922 GB, free: 8.043 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008829/0.4546, allocations: 0.7402 MB / 0.4929 GB, free: 7.285 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.428e-05/0.4547, allocations: 25.7 kB / 0.4929 GB, free: 7.254 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004351/0.4551, allocations: 0.6538 MB / 0.4936 GB, free: 6.586 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001571/0.4553, allocations: 228.8 kB / 0.4938 GB, free: 6.359 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.292e-05/0.4553, allocations: 0 / 0.4938 GB, free: 6.359 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.4555, allocations: 341.9 kB / 0.4941 GB, free: 6.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000319/0.4558, allocations: 202.6 kB / 0.4943 GB, free: 5.824 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005803/0.4564, allocations: 0.6444 MB / 0.4949 GB, free: 4.973 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004333/0.4568, allocations: 300.3 kB / 0.4952 GB, free: 4.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.4568, allocations: 7.938 kB / 0.4952 GB, free: 4.672 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001571/0.4584, allocations: 0.9462 MB / 0.4961 GB, free: 3.711 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.844e-05/0.4585, allocations: 63.41 kB / 0.4962 GB, free: 3.637 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.4585, allocations: 15.98 kB / 0.4962 GB, free: 3.621 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006024/0.4591, allocations: 185.6 kB / 0.4964 GB, free: 3.434 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006724/0.4598, allocations: 211.7 kB / 0.4966 GB, free: 3.227 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003724/0.4635, allocations: 3.406 MB / 0.4999 GB, free: 15.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008023/0.4643, allocations: 55.97 kB / 0.5 GB, free: 15.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.315e-05/0.4644, allocations: 48 kB / 0.5 GB, free: 15.49 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001755/0.4646, allocations: 144.8 kB / 0.5002 GB, free: 15.34 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001076/0.4657, allocations: 0.6124 MB / 0.5008 GB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.4658, allocations: 110.7 kB / 0.5009 GB, free: 14.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001204/0.467, allocations: 0.6284 MB / 0.5015 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.467, allocations: 8 kB / 0.5015 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.4671, allocations: 0 / 0.5015 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001024/0.4681, allocations: 0.8826 MB / 0.5024 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002394/0.4705, allocations: 1.602 MB / 0.5039 GB, free: 11.28 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.4705, allocations: 0 / 0.5039 GB, free: 11.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000481/0.471, allocations: 111.9 kB / 0.504 GB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004047/0.4714, allocations: 133.8 kB / 0.5042 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.4e-05/0.4715, allocations: 8 kB / 0.5042 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002723/0.4742, allocations: 3.146 MB / 0.5072 GB, free: 7.645 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.4742, allocations: 3.938 kB / 0.5072 GB, free: 7.641 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/0.4757, allocations: 1.042 MB / 0.5083 GB, free: 6.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003395/0.476, allocations: 239.7 kB / 0.5085 GB, free: 6.266 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.4761, allocations: 7.953 kB / 0.5085 GB, free: 6.258 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000493/0.4766, allocations: 31.97 kB / 0.5085 GB, free: 6.227 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.4768, allocations: 60.47 kB / 0.5086 GB, free: 6.168 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/0.4768, allocations: 20 kB / 0.5086 GB, free: 6.148 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000684/0.4775, allocations: 0.5411 MB / 0.5091 GB, free: 5.598 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4775, allocations: 0 / 0.5091 GB, free: 5.598 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001025/0.4785, allocations: 295.9 kB / 0.5094 GB, free: 5.309 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * 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: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002108/0.4806, allocations: 2.267 MB / 0.5116 GB, free: 2.961 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.4823, allocations: 0.9587 MB / 0.5126 GB, free: 1.961 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.4824, allocations: 0 / 0.5126 GB, free: 1.961 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006594/0.483, allocations: 0.4951 MB / 0.513 GB, free: 1.449 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.4841, allocations: 248.5 kB / 0.5133 GB, free: 1.207 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003324/0.4874, allocations: 1.733 MB / 0.515 GB, free: 15.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006634/0.4881, allocations: 1.104 MB / 0.516 GB, free: 14.27 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005333/0.4886, allocations: 132.6 kB / 0.5162 GB, free: 14.14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005196/0.4891, allocations: 455.3 kB / 0.5166 GB, free: 13.7 MB / 410.7 MB Notification: Performance of SimCode: time 4.21e-07/0.4891, allocations: 0 / 0.5166 GB, free: 13.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2452/0.7343, allocations: 23.69 MB / 0.5397 GB, free: 115.8 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002077/0.7346, allocations: 156.3 kB / 0.5399 GB, free: 115.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.856/3.591, allocations: 1.062 kB / 0.5399 GB, free: 115.6 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat