Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.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.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",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.001102/0.001102, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.399/1.399, allocations: 221.3 MB / 235.5 MB, free: 2.953 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.001048/0.001048, allocations: 97.98 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.416e-05/3.426e-05, allocations: 0 / 343.9 MB, free: 4.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1319, allocations: 50.41 MB / 394.3 MB, free: 1.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3948/0.5267, allocations: 80.68 MB / 475 MB, free: 6.812 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/0.527, allocations: 71.97 kB / 475.1 MB, free: 6.742 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01616/0.5432, allocations: 5.845 MB / 480.9 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5432, allocations: 0 / 480.9 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.068e-05/0.5433, allocations: 4 kB / 480.9 MB, free: 0.9062 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0007986/0.5441, allocations: 0.4958 MB / 481.4 MB, free: 372 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.5441, allocations: 12.03 kB / 481.4 MB, free: 360 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.452e-05/0.5442, allocations: 58.42 kB / 481.5 MB, free: 292 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001666/0.5444, allocations: 35.61 kB / 481.5 MB, free: 256 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004957/0.5449, allocations: 247.6 kB / 481.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.5449, allocations: 16 kB / 481.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.319e-05/0.545, allocations: 16 kB / 481.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.5453, allocations: 165.3 kB / 482 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.5453, allocations: 0 / 482 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/0.5453, allocations: 7.953 kB / 482 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.5454, allocations: 4 kB / 482 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002306/0.5456, allocations: 116 kB / 482.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009731/0.5466, allocations: 0.5782 MB / 482.7 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003214/0.5469, allocations: 162.5 kB / 482.8 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/0.5471, allocations: 85.16 kB / 482.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.678e-05/0.5471, allocations: 0 / 482.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002501/0.5474, allocations: 119.9 kB / 483 MB, free: 14.62 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 2.364e-06/0.5474, allocations: 0 / 483 MB, free: 14.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.0004321/0.5478, allocations: 183.8 kB / 483.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/0.5479, allocations: 51.41 kB / 483.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/0.5482, allocations: 236.8 kB / 483.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.5482, allocations: 25.7 kB / 483.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.5483, allocations: 144.3 kB / 483.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.353e-05/0.5484, allocations: 75.02 kB / 483.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.189e-05/0.5485, allocations: 8 kB / 483.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.5486, allocations: 338.8 kB / 484.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.5488, allocations: 44 kB / 484.1 MB, free: 13.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.5489, allocations: 87.55 kB / 484.2 MB, free: 13.4 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001301/0.549, allocations: 68.03 kB / 484.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.549, allocations: 7.938 kB / 484.3 MB, free: 13.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003312/0.5494, allocations: 203.9 kB / 484.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.5494, allocations: 8.938 kB / 484.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.5494, allocations: 0 / 484.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.5494, allocations: 4 kB / 484.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.5497, allocations: 47.91 kB / 484.5 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.5497, allocations: 3.984 kB / 484.5 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/0.5499, allocations: 23.94 kB / 484.6 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.5499, allocations: 8 kB / 484.6 MB, free: 13.03 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.55, allocations: 124.7 kB / 484.7 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.1e-05/0.55, allocations: 27.7 kB / 484.7 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003963/0.5504, allocations: 207.1 kB / 484.9 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.5505, allocations: 4 kB / 484.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.535e-06/0.5505, allocations: 3.984 kB / 484.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.5505, allocations: 0 / 484.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003374/0.5508, allocations: 309.2 kB / 485.2 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.5509, allocations: 0 / 485.2 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001969/0.5511, allocations: 39.92 kB / 485.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.5511, allocations: 0 / 485.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.235e-05/0.5511, allocations: 7.984 kB / 485.3 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.5511, allocations: 4 kB / 485.3 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.5511, allocations: 0 / 485.3 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004491/0.5516, allocations: 289.6 kB / 485.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.5517, allocations: 108.8 kB / 485.7 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.487e-05/0.5517, allocations: 8.062 kB / 485.7 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.591e-05/0.5518, allocations: 11.98 kB / 485.7 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.383e-05/0.5519, allocations: 11.98 kB / 485.7 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.5519, allocations: 4 kB / 485.7 MB, free: 11.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001797/0.5521, allocations: 193.3 kB / 485.9 MB, free: 11.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5521, allocations: 0 / 485.9 MB, free: 11.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002797/0.5524, allocations: 71.88 kB / 486 MB, free: 11.54 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001469/0.5539, allocations: 1.109 MB / 487.1 MB, free: 10.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002758/0.5541, allocations: 150.9 kB / 487.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.5542, allocations: 0 / 487.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.5543, allocations: 75.92 kB / 487.3 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000296/0.5546, allocations: 47.81 kB / 487.3 MB, free: 10.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009526/0.5555, allocations: 0.4923 MB / 487.8 MB, free: 9.727 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.5559, allocations: 0.7558 MB / 488.6 MB, free: 8.941 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001141/0.556, allocations: 34.05 kB / 488.6 MB, free: 8.906 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.5561, allocations: 79.41 kB / 488.7 MB, free: 8.828 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5561, allocations: 0 / 488.7 MB, free: 8.828 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01777/0.5739, allocations: 4.807 MB / 493.5 MB, free: 4.117 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001879/0.5741, allocations: 191.4 kB / 493.7 MB, free: 3.887 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.831/2.405, allocations: 0 / 493.7 MB, free: 3.887 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat does not exist to compare? outputFormat=mat