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.001103/0.001103, allocations: 180.7 kB / 17.02 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.346/1.346, allocations: 205.4 MB / 223.1 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000878/0.0008778, allocations: 101.2 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002449/0.0002449, allocations: 4 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2332, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1177/0.351, allocations: 100 MB / 475.9 MB, free: 12.58 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/0.3513, allocations: 83.95 kB / 476 MB, free: 12.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3166/0.6679, allocations: 30.84 MB / 0.495 GB, free: 95.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.668, allocations: 0 / 0.495 GB, free: 95.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.809e-05/0.6681, allocations: 26.72 kB / 0.495 GB, free: 95.8 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.00268/0.6708, allocations: 1.558 MB / 0.4965 GB, free: 95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.6708, allocations: 10.31 kB / 0.4965 GB, free: 95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001945/0.671, allocations: 162.2 kB / 0.4967 GB, free: 94.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005788/0.6716, allocations: 202 kB / 0.4969 GB, free: 94.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001464/0.6731, allocations: 0.8538 MB / 0.4977 GB, free: 94.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001421/0.6732, allocations: 118.8 kB / 0.4978 GB, free: 94.51 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.6734, allocations: 107 kB / 0.4979 GB, free: 94.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001803/0.6752, allocations: 1.133 MB / 0.499 GB, free: 94.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.353e-05/0.6753, allocations: 13.31 kB / 0.4991 GB, free: 94.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-05/0.6754, allocations: 44.28 kB / 0.4991 GB, free: 94.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.811e-05/0.6754, allocations: 31.61 kB / 0.4991 GB, free: 94.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/0.6769, allocations: 0.7801 MB / 0.4999 GB, free: 94.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005273/0.6821, allocations: 3.942 MB / 0.5037 GB, free: 92.85 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001497/0.6837, allocations: 0.6033 MB / 0.5043 GB, free: 92.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.996e-05/0.6837, allocations: 13.39 kB / 0.5043 GB, free: 92.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005297/0.6843, allocations: 309.2 kB / 0.5046 GB, free: 92.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 3.626e-06/0.6843, allocations: 0 / 0.5046 GB, free: 92.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.003964/0.6882, allocations: 2.117 MB / 0.5067 GB, free: 92.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.6884, allocations: 477.9 kB / 0.5072 GB, free: 91.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001013/0.6894, allocations: 0.9407 MB / 0.5081 GB, free: 91.29 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.365e-05/0.6894, allocations: 42.47 kB / 0.5081 GB, free: 91.26 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000361/0.6898, allocations: 0.6478 MB / 0.5088 GB, free: 90.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.69, allocations: 231.7 kB / 0.509 GB, free: 90.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-05/0.69, allocations: 22.5 kB / 0.509 GB, free: 90.65 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.903e-05/0.6901, allocations: 342.3 kB / 0.5093 GB, free: 90.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004541/0.6905, allocations: 258.5 kB / 0.5096 GB, free: 90.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006735/0.6912, allocations: 0.7236 MB / 0.5103 GB, free: 89.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005783/0.6918, allocations: 408.7 kB / 0.5107 GB, free: 89.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.75e-06/0.6918, allocations: 2.156 kB / 0.5107 GB, free: 89.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001855/0.6937, allocations: 1.166 MB / 0.5118 GB, free: 88.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.236e-05/0.6938, allocations: 67.42 kB / 0.5119 GB, free: 88.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.6938, allocations: 20.5 kB / 0.5119 GB, free: 88.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005043/0.6943, allocations: 169.2 kB / 0.5121 GB, free: 88.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006321/0.6949, allocations: 213.5 kB / 0.5123 GB, free: 88.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003107/0.698, allocations: 3.592 MB / 0.5158 GB, free: 85.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000939/0.699, allocations: 81.83 kB / 0.5158 GB, free: 85.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.475e-05/0.6991, allocations: 44.69 kB / 0.5159 GB, free: 85.59 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.0004901/0.6996, allocations: 301.5 kB / 0.5162 GB, free: 85.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.6997, allocations: 128.5 kB / 0.5163 GB, free: 85.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001337/0.701, allocations: 0.7259 MB / 0.517 GB, free: 84.97 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.7011, allocations: 12.2 kB / 0.517 GB, free: 84.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.7011, allocations: 1.688 kB / 0.517 GB, free: 84.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001105/0.7022, allocations: 0.9571 MB / 0.518 GB, free: 84.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002493/0.7047, allocations: 1.809 MB / 0.5197 GB, free: 83.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.7047, allocations: 3.094 kB / 0.5197 GB, free: 83.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004452/0.7052, allocations: 112.9 kB / 0.5198 GB, free: 83.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003756/0.7055, allocations: 136.9 kB / 0.52 GB, free: 83.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.557e-05/0.7056, allocations: 15.62 kB / 0.52 GB, free: 83.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002742/0.7083, allocations: 3.309 MB / 0.5232 GB, free: 80.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.7084, allocations: 0 / 0.5232 GB, free: 80.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002202/0.7106, allocations: 1.195 MB / 0.5244 GB, free: 79.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000462/0.7111, allocations: 251.3 kB / 0.5246 GB, free: 79.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.7112, allocations: 24.48 kB / 0.5246 GB, free: 79.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005423/0.7117, allocations: 42.19 kB / 0.5247 GB, free: 79.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.7119, allocations: 56.95 kB / 0.5247 GB, free: 79.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.504e-05/0.7119, allocations: 20.62 kB / 0.5248 GB, free: 79.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008981/0.7128, allocations: 0.7129 MB / 0.5254 GB, free: 78.99 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.7128, allocations: 0 / 0.5254 GB, free: 78.99 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001156/0.714, allocations: 361.2 kB / 0.5258 GB, free: 78.94 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.002207/0.7162, allocations: 2.475 MB / 0.5282 GB, free: 77.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001783/0.718, allocations: 1.109 MB / 0.5293 GB, free: 76.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.718, allocations: 0 / 0.5293 GB, free: 76.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007879/0.7188, allocations: 0.5733 MB / 0.5299 GB, free: 76.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00135/0.7202, allocations: 303.9 kB / 0.5301 GB, free: 76.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005623/0.7258, allocations: 11.39 MB / 0.5413 GB, free: 65.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005196/0.7264, allocations: 1.116 MB / 0.5424 GB, free: 65.09 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006147/0.727, allocations: 144 kB / 0.5425 GB, free: 65.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004407/0.7274, allocations: 473.2 kB / 0.5429 GB, free: 64.71 MB / 378.7 MB Notification: Performance of SimCode: time 6.92e-07/0.7274, allocations: 0 / 0.5429 GB, free: 64.71 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04727/0.7747, allocations: 29.22 MB / 0.5715 GB, free: 39.84 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/0.7749, allocations: 221.2 kB / 0.5717 GB, free: 39.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.918/3.693, allocations: 0 / 0.5717 GB, free: 39.6 MB / 378.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