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.001281/0.001281, allocations: 181 kB / 16.38 MB, free: 5.766 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.416/1.416, allocations: 223.2 MB / 240.3 MB, free: 10.16 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.001006/0.001006, allocations: 93.45 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002578/0.0002576, allocations: 4 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2722, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1028/0.375, allocations: 80.75 MB / 482.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.3754, allocations: 75.97 kB / 482.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01772/0.3931, allocations: 5.867 MB / 488.3 MB, free: 9.754 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3931, allocations: 4 kB / 488.3 MB, free: 9.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.873e-05/0.3932, allocations: 4 kB / 488.3 MB, free: 9.746 MB / 362.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.0008108/0.394, allocations: 0.5305 MB / 488.8 MB, free: 9.164 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.394, allocations: 12.03 kB / 488.8 MB, free: 9.152 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.544e-05/0.3941, allocations: 50.53 kB / 488.9 MB, free: 9.094 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.3942, allocations: 31.72 kB / 488.9 MB, free: 9.062 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003916/0.3946, allocations: 259.5 kB / 489.1 MB, free: 8.766 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.3947, allocations: 12 kB / 489.2 MB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.532e-05/0.3947, allocations: 12 kB / 489.2 MB, free: 8.742 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004484/0.3952, allocations: 161.4 kB / 489.3 MB, free: 8.578 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.3952, allocations: 8 kB / 489.3 MB, free: 8.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.382e-05/0.3952, allocations: 11.89 kB / 489.3 MB, free: 8.559 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.3953, allocations: 4 kB / 489.4 MB, free: 8.555 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000278/0.3955, allocations: 127.9 kB / 489.5 MB, free: 8.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009651/0.3965, allocations: 0.5744 MB / 490 MB, free: 7.801 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003234/0.3969, allocations: 166.5 kB / 490.2 MB, free: 7.629 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.608e-05/0.3969, allocations: 352 / 490.2 MB, free: 7.629 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002416/0.3971, allocations: 122.2 kB / 490.3 MB, free: 7.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 5.53e-06/0.3972, allocations: 0 / 490.3 MB, free: 7.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.0005875/0.3978, allocations: 237.3 kB / 490.6 MB, free: 7.262 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.3978, allocations: 55.41 kB / 490.6 MB, free: 7.195 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002644/0.3981, allocations: 236.1 kB / 490.8 MB, free: 6.957 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.3981, allocations: 29.7 kB / 490.9 MB, free: 6.922 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.3983, allocations: 144.3 kB / 491 MB, free: 6.773 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.428e-05/0.3983, allocations: 70.97 kB / 491.1 MB, free: 6.703 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.658e-06/0.3983, allocations: 4 kB / 491.1 MB, free: 6.699 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.3985, allocations: 342.8 kB / 491.4 MB, free: 6.355 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.3986, allocations: 51.98 kB / 491.5 MB, free: 6.305 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.3988, allocations: 83.58 kB / 491.6 MB, free: 6.211 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001708/0.399, allocations: 60.94 kB / 491.6 MB, free: 6.152 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.399, allocations: 4 kB / 491.6 MB, free: 6.148 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004588/0.3995, allocations: 211.9 kB / 491.8 MB, free: 5.938 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.3995, allocations: 7.938 kB / 491.8 MB, free: 5.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3995, allocations: 0 / 491.8 MB, free: 5.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.3995, allocations: 4 kB / 491.8 MB, free: 5.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.3998, allocations: 43.97 kB / 491.9 MB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.3998, allocations: 4 kB / 491.9 MB, free: 5.879 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001292/0.3999, allocations: 23.94 kB / 491.9 MB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.3999, allocations: 4 kB / 491.9 MB, free: 5.852 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 () * Number of clocked 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.0001461/0.4001, allocations: 153.5 kB / 492.1 MB, free: 5.691 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.88e-05/0.4001, allocations: 23.72 kB / 492.1 MB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004274/0.4006, allocations: 217.7 kB / 492.3 MB, free: 5.449 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.4006, allocations: 0 / 492.3 MB, free: 5.449 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.4006, allocations: 7.984 kB / 492.3 MB, free: 5.441 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.4006, allocations: 0 / 492.3 MB, free: 5.441 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003326/0.401, allocations: 309.3 kB / 492.6 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.401, allocations: 0 / 492.6 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.4012, allocations: 31.98 kB / 492.6 MB, free: 5.059 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.4012, allocations: 4 kB / 492.6 MB, free: 5.055 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.186e-05/0.4012, allocations: 7.984 kB / 492.7 MB, free: 5.047 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.4012, allocations: 4 kB / 492.7 MB, free: 5.043 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.4012, allocations: 0 / 492.7 MB, free: 5.043 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005952/0.4018, allocations: 303.2 kB / 493 MB, free: 4.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.402, allocations: 116.8 kB / 493.1 MB, free: 4.598 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.697e-05/0.402, allocations: 4 kB / 493.1 MB, free: 4.594 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.407e-05/0.4021, allocations: 12 kB / 493.1 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.783e-05/0.4022, allocations: 15.97 kB / 493.1 MB, free: 4.566 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.495e-05/0.4022, allocations: 4 kB / 493.1 MB, free: 4.562 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000201/0.4024, allocations: 188.5 kB / 493.3 MB, free: 4.379 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.444e-06/0.4024, allocations: 0 / 493.3 MB, free: 4.379 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003179/0.4027, allocations: 79.7 kB / 493.4 MB, free: 4.301 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) * Number of clocked states: 0 () * 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.001753/0.4045, allocations: 1.153 MB / 494.5 MB, free: 3.289 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003598/0.4049, allocations: 151.8 kB / 494.7 MB, free: 3.141 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.4049, allocations: 0 / 494.7 MB, free: 3.141 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001566/0.405, allocations: 84.09 kB / 494.7 MB, free: 3.059 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003513/0.4054, allocations: 52.48 kB / 494.8 MB, free: 3.008 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002676/0.4081, allocations: 1.893 MB / 496.7 MB, free: 1.051 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003679/0.4085, allocations: 0.756 MB / 497.4 MB, free: 272 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001411/0.4086, allocations: 33.92 kB / 497.5 MB, free: 240 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002018/0.4088, allocations: 75.41 kB / 497.6 MB, free: 164 kB / 362.7 MB Notification: Performance of SimCode: time 2.525e-06/0.4089, allocations: 0 / 497.6 MB, free: 164 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01995/0.4288, allocations: 4.829 MB / 0.4906 GB, free: 11.47 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002048/0.4291, allocations: 220.6 kB / 0.4908 GB, free: 11.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.92/2.349, allocations: 4.062 kB / 0.4908 GB, free: 11.22 MB / 378.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