Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001684/0.001684, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001118/0.001118, allocations: 102.8 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.954e-05/1.94e-05, allocations: 4 kB / 343.8 MB, free: 8.148 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09944/0.09948, allocations: 51.48 MB / 395.3 MB, free: 4.625 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3416/0.4411, allocations: 99.88 MB / 495.2 MB, free: 9.539 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/0.4415, allocations: 77.64 kB / 495.2 MB, free: 9.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08361/0.5251, allocations: 30.31 MB / 0.5132 GB, free: 36 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.5251, allocations: 0 / 0.5132 GB, free: 36 kB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001096/0.5253, allocations: 24 kB / 0.5132 GB, free: 12 kB / 378.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.002866/0.5281, allocations: 1.371 MB / 0.5146 GB, free: 14.58 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.5282, allocations: 12.03 kB / 0.5146 GB, free: 14.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007351/0.5289, allocations: 202.1 kB / 0.5148 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/0.5307, allocations: 0.8441 MB / 0.5156 GB, free: 13.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/0.5308, allocations: 83.78 kB / 0.5157 GB, free: 13.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001616/0.531, allocations: 71.89 kB / 0.5158 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001217/0.5322, allocations: 0.633 MB / 0.5164 GB, free: 12.68 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.5337, allocations: 0.9276 MB / 0.5173 GB, free: 11.67 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.934e-05/0.5337, allocations: 0 / 0.5173 GB, free: 11.67 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.041e-05/0.5338, allocations: 7.984 kB / 0.5173 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.946e-05/0.5339, allocations: 24 kB / 0.5173 GB, free: 11.64 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005507/0.5394, allocations: 3.739 MB / 0.521 GB, free: 7.719 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/0.5407, allocations: 0.5117 MB / 0.5215 GB, free: 7.195 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003535/0.541, allocations: 229.2 kB / 0.5217 GB, free: 6.973 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.721e-05/0.5411, allocations: 8.562 kB / 0.5217 GB, free: 6.965 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004421/0.5415, allocations: 254 kB / 0.5219 GB, free: 6.703 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 2.885e-06/0.5416, allocations: 0 / 0.5219 GB, free: 6.703 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.002689/0.5443, allocations: 1.399 MB / 0.5233 GB, free: 5.242 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002101/0.5445, allocations: 483.2 kB / 0.5238 GB, free: 4.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001244/0.5457, allocations: 0.7402 MB / 0.5245 GB, free: 3.902 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.445e-05/0.5458, allocations: 33.7 kB / 0.5245 GB, free: 3.863 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005828/0.5464, allocations: 0.65 MB / 0.5252 GB, free: 3.203 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002099/0.5466, allocations: 232.6 kB / 0.5254 GB, free: 2.973 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.549e-05/0.5467, allocations: 0 / 0.5254 GB, free: 2.973 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.5468, allocations: 345.9 kB / 0.5257 GB, free: 2.629 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003621/0.5472, allocations: 198.6 kB / 0.5259 GB, free: 2.434 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006479/0.5478, allocations: 0.6443 MB / 0.5265 GB, free: 1.586 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004791/0.5483, allocations: 304.3 kB / 0.5268 GB, free: 1.289 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.475e-06/0.5484, allocations: 4 kB / 0.5268 GB, free: 1.285 MB / 394.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00178/0.5501, allocations: 0.9461 MB / 0.5277 GB, free: 332 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.608e-05/0.5502, allocations: 63.41 kB / 0.5278 GB, free: 256 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.037e-05/0.5502, allocations: 12.05 kB / 0.5278 GB, free: 244 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006351/0.5509, allocations: 189.8 kB / 0.528 GB, free: 48 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007348/0.5516, allocations: 215.6 kB / 0.5282 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004007/0.5556, allocations: 3.401 MB / 0.5315 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009916/0.5567, allocations: 56.03 kB / 0.5316 GB, free: 12.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.5568, allocations: 51.98 kB / 0.5316 GB, free: 12.1 MB / 410.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.0002103/0.557, allocations: 148 kB / 0.5318 GB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001201/0.5582, allocations: 0.6086 MB / 0.5324 GB, free: 11.33 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/0.5584, allocations: 114.6 kB / 0.5325 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001199/0.5596, allocations: 0.6284 MB / 0.5331 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.5596, allocations: 4 kB / 0.5331 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.5596, allocations: 7.938 kB / 0.5331 GB, free: 10.56 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001047/0.5607, allocations: 0.8826 MB / 0.534 GB, free: 9.566 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002686/0.5634, allocations: 1.591 MB / 0.5355 GB, free: 7.895 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.5634, allocations: 4.031 kB / 0.5355 GB, free: 7.891 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005266/0.564, allocations: 111.9 kB / 0.5356 GB, free: 7.781 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004362/0.5644, allocations: 129.6 kB / 0.5357 GB, free: 7.648 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.964e-05/0.5645, allocations: 11.98 kB / 0.5358 GB, free: 7.637 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003124/0.5676, allocations: 3.144 MB / 0.5388 GB, free: 4.266 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/0.5676, allocations: 4 kB / 0.5388 GB, free: 4.262 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001629/0.5692, allocations: 1.038 MB / 0.5398 GB, free: 3.141 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004602/0.5697, allocations: 227.8 kB / 0.5401 GB, free: 2.898 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001672/0.5699, allocations: 15.95 kB / 0.5401 GB, free: 2.883 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005575/0.5705, allocations: 31.97 kB / 0.5401 GB, free: 2.852 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.5706, allocations: 60.42 kB / 0.5402 GB, free: 2.793 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.678e-05/0.5706, allocations: 19.98 kB / 0.5402 GB, free: 2.773 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008669/0.5715, allocations: 0.545 MB / 0.5407 GB, free: 2.219 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5715, allocations: 0 / 0.5407 GB, free: 2.219 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001119/0.5726, allocations: 296.1 kB / 0.541 GB, free: 1.93 MB / 410.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.002264/0.5749, allocations: 2.278 MB / 0.5432 GB, free: 15.58 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001841/0.5768, allocations: 0.9636 MB / 0.5442 GB, free: 14.58 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.5768, allocations: 4.312 kB / 0.5442 GB, free: 14.58 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007589/0.5776, allocations: 0.4933 MB / 0.5446 GB, free: 14.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.5789, allocations: 242.7 kB / 0.5449 GB, free: 13.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003667/0.5826, allocations: 1.73 MB / 0.5466 GB, free: 12.04 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007639/0.5834, allocations: 1.104 MB / 0.5476 GB, free: 10.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005559/0.584, allocations: 128.6 kB / 0.5478 GB, free: 10.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005272/0.5845, allocations: 455.3 kB / 0.5482 GB, free: 10.33 MB / 426.7 MB Notification: Performance of SimCode: time 8.12e-07/0.5845, allocations: 0 / 0.5482 GB, free: 10.33 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06013/0.6446, allocations: 23.67 MB / 0.5713 GB, free: 2.898 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000195/0.6449, allocations: 155.1 kB / 0.5715 GB, free: 2.707 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.978/3.623, allocations: 0 / 0.5715 GB, free: 2.707 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat