Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.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.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor",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.001603/0.001603, allocations: 172.8 kB / 14.1 MB, free: 1.223 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.561/1.561, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.001007/0.001007, allocations: 86.66 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.081e-05/4.094e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.102, allocations: 47.56 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3168/0.4188, allocations: 79.39 MB / 449.5 MB, free: 13.92 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001694/0.419, allocations: 67.28 kB / 449.6 MB, free: 13.89 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01486/0.4339, allocations: 5.799 MB / 455.4 MB, free: 8.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4339, allocations: 0 / 455.4 MB, free: 8.98 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.753e-05/0.434, allocations: 8 kB / 455.4 MB, free: 8.973 MB / 330.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.0007111/0.4347, allocations: 0.4908 MB / 455.9 MB, free: 8.449 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.4347, allocations: 8.031 kB / 455.9 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.446e-05/0.4348, allocations: 53.61 kB / 455.9 MB, free: 8.391 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.435, allocations: 27.72 kB / 455.9 MB, free: 8.363 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003391/0.4353, allocations: 254.8 kB / 456.2 MB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.4353, allocations: 19.58 kB / 456.2 MB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.238e-05/0.4354, allocations: 15.86 kB / 456.2 MB, free: 8.062 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.4357, allocations: 159 kB / 456.4 MB, free: 7.945 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.4357, allocations: 4.219 kB / 456.4 MB, free: 7.941 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.4357, allocations: 3.5 kB / 456.4 MB, free: 7.941 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.4357, allocations: 11.88 kB / 456.4 MB, free: 7.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002073/0.4359, allocations: 125.9 kB / 456.5 MB, free: 7.844 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008088/0.4367, allocations: 0.5738 MB / 457.1 MB, free: 7.312 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002412/0.437, allocations: 158.7 kB / 457.3 MB, free: 7.191 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.4371, allocations: 87.66 kB / 457.3 MB, free: 7.133 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.4372, allocations: 7.938 kB / 457.4 MB, free: 7.125 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001743/0.4373, allocations: 111.4 kB / 457.5 MB, free: 7.027 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 1.463e-06/0.4374, allocations: 0 / 457.5 MB, free: 7.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=20): time 0.000311/0.4377, allocations: 195.2 kB / 457.7 MB, free: 6.867 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.4377, allocations: 55.36 kB / 457.7 MB, free: 6.801 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002002/0.4379, allocations: 230.8 kB / 457.9 MB, free: 6.605 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.4379, allocations: 29.7 kB / 458 MB, free: 6.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.842e-05/0.438, allocations: 143.2 kB / 458.1 MB, free: 6.453 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.692e-05/0.4381, allocations: 66.61 kB / 458.2 MB, free: 6.395 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.955e-06/0.4381, allocations: 3.875 kB / 458.2 MB, free: 6.395 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.4382, allocations: 334.4 kB / 458.5 MB, free: 6.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.112e-05/0.4383, allocations: 47.25 kB / 458.5 MB, free: 6.039 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.4384, allocations: 88.55 kB / 458.6 MB, free: 5.965 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.81e-05/0.4385, allocations: 68.09 kB / 458.7 MB, free: 5.918 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-06/0.4385, allocations: 0 / 458.7 MB, free: 5.918 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002809/0.4388, allocations: 206.1 kB / 458.9 MB, free: 5.754 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.4388, allocations: 4 kB / 458.9 MB, free: 5.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.4388, allocations: 7.984 kB / 458.9 MB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.4388, allocations: 0 / 458.9 MB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001945/0.439, allocations: 47.86 kB / 459 MB, free: 5.699 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.4391, allocations: 4 kB / 459 MB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.4392, allocations: 31.81 kB / 459 MB, free: 5.664 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.4392, allocations: 11.38 kB / 459 MB, free: 5.656 MB / 330.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 7.238e-05/0.4393, allocations: 116.3 kB / 459.1 MB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.4393, allocations: 19.72 kB / 459.1 MB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000335/0.4396, allocations: 218.5 kB / 459.3 MB, free: 5.352 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.4397, allocations: 0 / 459.3 MB, free: 5.352 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.4397, allocations: 0 / 459.3 MB, free: 5.352 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.4397, allocations: 0 / 459.3 MB, free: 5.352 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002701/0.44, allocations: 305.3 kB / 459.6 MB, free: 5.004 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.44, allocations: 4 kB / 459.6 MB, free: 5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/0.4402, allocations: 35.92 kB / 459.7 MB, free: 4.965 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.4402, allocations: 0 / 459.7 MB, free: 4.965 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.4402, allocations: 8 kB / 459.7 MB, free: 4.957 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.4402, allocations: 0 / 459.7 MB, free: 4.957 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.4402, allocations: 0 / 459.7 MB, free: 4.957 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004317/0.4406, allocations: 301 kB / 460 MB, free: 4.645 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.387e-05/0.4407, allocations: 116.8 kB / 460.1 MB, free: 4.512 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/0.4408, allocations: 8 kB / 460.1 MB, free: 4.504 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.725e-05/0.4409, allocations: 4 kB / 460.1 MB, free: 4.5 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.393e-05/0.4409, allocations: 15.98 kB / 460.1 MB, free: 4.484 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.4409, allocations: 7.984 kB / 460.1 MB, free: 4.477 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001685/0.4411, allocations: 189.3 kB / 460.3 MB, free: 4.293 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4411, allocations: 0 / 460.3 MB, free: 4.293 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002652/0.4414, allocations: 71.83 kB / 460.4 MB, free: 4.223 MB / 330.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.001383/0.4428, allocations: 1.108 MB / 461.5 MB, free: 3.09 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002449/0.443, allocations: 147.8 kB / 461.6 MB, free: 2.945 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.4431, allocations: 0 / 461.6 MB, free: 2.945 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.4432, allocations: 71.94 kB / 461.7 MB, free: 2.875 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.4434, allocations: 53.81 kB / 461.8 MB, free: 2.82 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009251/0.4444, allocations: 0.4927 MB / 462.3 MB, free: 2.293 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.4447, allocations: 0.7519 MB / 463 MB, free: 1.512 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.4448, allocations: 34.05 kB / 463 MB, free: 1.477 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.445, allocations: 75.42 kB / 463.1 MB, free: 1.402 MB / 330.7 MB Notification: Performance of SimCode: time 3.7e-07/0.445, allocations: 0 / 463.1 MB, free: 1.402 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01486/0.4598, allocations: 4.818 MB / 467.9 MB, free: 12.58 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000196/0.4601, allocations: 190.9 kB / 468.1 MB, free: 12.35 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.656/2.116, allocations: 0 / 468.1 MB, free: 12.35 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat does not exist to compare? outputFormat=mat