Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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_Cooling,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.296/1.296, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008277/0.0008276, allocations: 102.2 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002509/0.000251, allocations: 8 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2128/0.2131, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1195/0.3326, allocations: 99.83 MB / 0.4897 GB, free: 12.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.333, allocations: 87.95 kB / 0.4897 GB, free: 12.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2724/0.6054, allocations: 30.65 MB / 0.5197 GB, free: 92.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.6054, allocations: 0 / 0.5197 GB, free: 92.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001054/0.6055, allocations: 25.75 kB / 0.5197 GB, free: 92.38 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003273/0.6088, allocations: 1.568 MB / 0.5212 GB, free: 91.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.6089, allocations: 7.219 kB / 0.5212 GB, free: 91.2 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003534/0.6092, allocations: 163.8 kB / 0.5214 GB, free: 91.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000603/0.6099, allocations: 206.9 kB / 0.5216 GB, free: 90.97 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.6113, allocations: 0.8553 MB / 0.5224 GB, free: 90.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.6114, allocations: 113.7 kB / 0.5225 GB, free: 90.24 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.6116, allocations: 109.4 kB / 0.5226 GB, free: 90.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/0.6132, allocations: 1.137 MB / 0.5238 GB, free: 89.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.146e-05/0.6132, allocations: 3.906 kB / 0.5238 GB, free: 89.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.061e-05/0.6133, allocations: 55.95 kB / 0.5238 GB, free: 89.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/0.6133, allocations: 28 kB / 0.5238 GB, free: 89.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.6147, allocations: 0.7808 MB / 0.5246 GB, free: 88.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00497/0.6196, allocations: 3.94 MB / 0.5284 GB, free: 84.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001391/0.6211, allocations: 0.6008 MB / 0.529 GB, free: 83.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.939e-05/0.6211, allocations: 10.28 kB / 0.529 GB, free: 83.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005296/0.6217, allocations: 311.4 kB / 0.5293 GB, free: 83.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 3.717e-06/0.6217, allocations: 4 kB / 0.5293 GB, free: 83.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.004199/0.6259, allocations: 2.109 MB / 0.5314 GB, free: 81.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.626, allocations: 482.2 kB / 0.5319 GB, free: 80.53 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001068/0.6271, allocations: 0.9352 MB / 0.5328 GB, free: 79.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.71e-05/0.6271, allocations: 41.7 kB / 0.5328 GB, free: 79.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004138/0.6276, allocations: 0.6445 MB / 0.5334 GB, free: 78.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.6277, allocations: 238.4 kB / 0.5337 GB, free: 78.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.784e-05/0.6277, allocations: 20 kB / 0.5337 GB, free: 78.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.485e-05/0.6278, allocations: 345.9 kB / 0.534 GB, free: 78.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004674/0.6283, allocations: 254.5 kB / 0.5343 GB, free: 78.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006938/0.629, allocations: 0.7208 MB / 0.535 GB, free: 77.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005915/0.6296, allocations: 413.9 kB / 0.5354 GB, free: 76.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.6296, allocations: 8 kB / 0.5354 GB, free: 76.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001713/0.6313, allocations: 1.173 MB / 0.5365 GB, free: 75.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.064e-05/0.6314, allocations: 66.53 kB / 0.5366 GB, free: 75.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.6314, allocations: 12 kB / 0.5366 GB, free: 75.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005042/0.6319, allocations: 173.7 kB / 0.5368 GB, free: 75.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006396/0.6326, allocations: 211.7 kB / 0.537 GB, free: 75.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003094/0.6357, allocations: 3.601 MB / 0.5405 GB, free: 71.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.6367, allocations: 80 kB / 0.5406 GB, free: 71.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.42e-05/0.6368, allocations: 51.98 kB / 0.5406 GB, free: 71.05 MB / 378.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 () * Number of clocked 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005547/0.6373, allocations: 297.6 kB / 0.5409 GB, free: 70.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001929/0.6375, allocations: 122.5 kB / 0.541 GB, free: 70.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001452/0.639, allocations: 0.735 MB / 0.5417 GB, free: 69.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.639, allocations: 8 kB / 0.5417 GB, free: 69.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.639, allocations: 0 / 0.5417 GB, free: 69.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001058/0.6401, allocations: 0.9569 MB / 0.5427 GB, free: 68.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002844/0.6429, allocations: 1.815 MB / 0.5444 GB, free: 66.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.643, allocations: 3.984 kB / 0.5444 GB, free: 66.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005431/0.6435, allocations: 112.1 kB / 0.5445 GB, free: 66.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004125/0.6439, allocations: 125.6 kB / 0.5447 GB, free: 66.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.659e-05/0.644, allocations: 20 kB / 0.5447 GB, free: 66.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002478/0.6465, allocations: 3.312 MB / 0.5479 GB, free: 63.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.6465, allocations: 4.031 kB / 0.5479 GB, free: 63.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001777/0.6483, allocations: 1.181 MB / 0.5491 GB, free: 61.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004808/0.6488, allocations: 259.5 kB / 0.5493 GB, free: 61.53 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002185/0.649, allocations: 16 kB / 0.5493 GB, free: 61.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006403/0.6496, allocations: 43.97 kB / 0.5494 GB, free: 61.47 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.6498, allocations: 56.42 kB / 0.5494 GB, free: 61.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-05/0.6498, allocations: 23.98 kB / 0.5495 GB, free: 61.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009228/0.6507, allocations: 0.7133 MB / 0.5502 GB, free: 60.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6508, allocations: 0 / 0.5502 GB, free: 60.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00131/0.6521, allocations: 352.1 kB / 0.5505 GB, free: 60.33 MB / 378.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) * Number of clocked states: 0 () * 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.002438/0.6545, allocations: 2.478 MB / 0.5529 GB, free: 57.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001863/0.6564, allocations: 1.116 MB / 0.554 GB, free: 56.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.6564, allocations: 4.062 kB / 0.554 GB, free: 56.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007865/0.6572, allocations: 0.5592 MB / 0.5545 GB, free: 56.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001318/0.6585, allocations: 303.7 kB / 0.5548 GB, free: 55.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006328/0.6649, allocations: 11.39 MB / 0.566 GB, free: 44.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005428/0.6655, allocations: 1.109 MB / 0.567 GB, free: 42.92 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006305/0.6661, allocations: 149.8 kB / 0.5672 GB, free: 42.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004796/0.6666, allocations: 471.3 kB / 0.5676 GB, free: 42.31 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.6666, allocations: 0 / 0.5676 GB, free: 42.31 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04652/0.7131, allocations: 29.23 MB / 0.5962 GB, free: 13.51 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000137/0.7133, allocations: 221.8 kB / 0.5964 GB, free: 13.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.991/3.705, allocations: 0 / 0.5964 GB, free: 13.27 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat