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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 95.92 kB / 16.94 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 190.2 kB / 17.83 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.658/1.658, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000468/0.0004683, allocations: 16 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1055, allocations: 47.58 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002444/0.108, allocations: 1.773 MB / 330.2 MB, free: 2.219 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.1093, allocations: 0.8863 MB / 331.1 MB, free: 1.324 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.1095, allocations: 8 kB / 331.1 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003153/0.1098, allocations: 83.69 kB / 331.2 MB, free: 1.234 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002532/0.1101, allocations: 115.7 kB / 331.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002891/0.1104, allocations: 95.75 kB / 331.4 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002462/0.1106, allocations: 199.6 kB / 331.6 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.1108, allocations: 76.55 kB / 331.7 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.1109, allocations: 95.62 kB / 331.7 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.1111, allocations: 99.59 kB / 331.8 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.585e-05/0.1111, allocations: 12 kB / 331.9 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.1113, allocations: 35.88 kB / 331.9 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.407e-05/0.1113, allocations: 47.81 kB / 331.9 MB, free: 484 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.28e-05/0.1114, allocations: 65.58 kB / 332 MB, free: 412 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002383/0.1116, allocations: 207.8 kB / 332.2 MB, free: 204 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.1116, allocations: 0 / 332.2 MB, free: 204 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1117, allocations: 0 / 332.2 MB, free: 204 kB / 270.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.1117, allocations: 0 / 332.2 MB, free: 204 kB / 270.1 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.0007368/0.1124, allocations: 0.499 MB / 332.7 MB, free: 15.65 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.1125, allocations: 8.031 kB / 332.7 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.648e-05/0.1125, allocations: 50.55 kB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.1127, allocations: 39.64 kB / 332.8 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003132/0.113, allocations: 255.4 kB / 333 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.113, allocations: 12 kB / 333.1 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.372e-05/0.1131, allocations: 16 kB / 333.1 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002859/0.1133, allocations: 161.2 kB / 333.2 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1134, allocations: 0 / 333.2 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.1134, allocations: 12 kB / 333.2 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.1134, allocations: 4 kB / 333.2 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002238/0.1136, allocations: 111.9 kB / 333.4 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008113/0.1145, allocations: 0.5665 MB / 333.9 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002922/0.1148, allocations: 162.5 kB / 334.1 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.906e-05/0.1148, allocations: 4 kB / 334.1 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.1151, allocations: 115.6 kB / 334.2 MB, free: 14.02 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.482e-06/0.1151, allocations: 0 / 334.2 MB, free: 14.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004664/0.1155, allocations: 233.2 kB / 334.4 MB, free: 13.79 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.993e-05/0.1156, allocations: 51.41 kB / 334.5 MB, free: 13.73 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002441/0.1158, allocations: 257 kB / 334.7 MB, free: 13.46 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.1159, allocations: 33.7 kB / 334.8 MB, free: 13.43 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.116, allocations: 140.3 kB / 334.9 MB, free: 13.29 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.373e-05/0.1161, allocations: 63.05 kB / 335 MB, free: 13.22 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.958e-06/0.1161, allocations: 8 kB / 335 MB, free: 13.21 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1162, allocations: 330.8 kB / 335.3 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.1163, allocations: 55.97 kB / 335.3 MB, free: 12.83 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.1165, allocations: 91.53 kB / 335.4 MB, free: 12.73 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001298/0.1166, allocations: 56.94 kB / 335.5 MB, free: 12.67 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1166, allocations: 0 / 335.5 MB, free: 12.67 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003535/0.117, allocations: 206.9 kB / 335.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.117, allocations: 7.938 kB / 335.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.117, allocations: 3.953 kB / 335.7 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.117, allocations: 8.094 kB / 335.7 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002292/0.1173, allocations: 47.91 kB / 335.8 MB, free: 12.4 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.1173, allocations: 0 / 335.8 MB, free: 12.4 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001204/0.1174, allocations: 31.77 kB / 335.8 MB, free: 12.37 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.1175, allocations: 4 kB / 335.8 MB, free: 12.36 MB / 286.1 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.0001441/0.1176, allocations: 145.8 kB / 335.9 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.117e-05/0.1177, allocations: 23.72 kB / 336 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.74e-05/0.1177, allocations: 26.19 kB / 336 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1177, allocations: 7.953 kB / 336 MB, free: 12.15 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.1178, allocations: 3.984 kB / 336 MB, free: 12.15 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.1178, allocations: 0 / 336 MB, free: 12.15 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002897/0.1181, allocations: 285.4 kB / 336.3 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.1181, allocations: 4 kB / 336.3 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.1183, allocations: 35.92 kB / 336.3 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1183, allocations: 0 / 336.3 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.1183, allocations: 8 kB / 336.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.1183, allocations: 11.94 kB / 336.3 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1183, allocations: 4 kB / 336.3 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004646/0.1188, allocations: 276.7 kB / 336.6 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.332e-05/0.1189, allocations: 96.88 kB / 336.7 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/0.1189, allocations: 8 kB / 336.7 MB, free: 11.35 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.487e-05/0.119, allocations: 4 kB / 336.7 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.792e-05/0.119, allocations: 15.94 kB / 336.7 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.909e-05/0.1191, allocations: 4.062 kB / 336.7 MB, free: 11.32 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001632/0.1192, allocations: 192.5 kB / 336.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1193, allocations: 0 / 336.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002688/0.1195, allocations: 59.84 kB / 337 MB, free: 11.08 MB / 286.1 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.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * 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.001574/0.1211, allocations: 1.122 MB / 338.1 MB, free: 9.945 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002952/0.1214, allocations: 147.9 kB / 338.2 MB, free: 9.801 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1214, allocations: 0 / 338.2 MB, free: 9.801 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.1216, allocations: 76.03 kB / 338.3 MB, free: 9.727 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.1219, allocations: 48.62 kB / 338.4 MB, free: 9.68 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.1242, allocations: 1.861 MB / 340.2 MB, free: 7.758 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/0.1245, allocations: 0.7521 MB / 341 MB, free: 6.98 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.1247, allocations: 29.88 kB / 341 MB, free: 6.953 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.1248, allocations: 71.41 kB / 341.1 MB, free: 6.883 MB / 286.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1248, allocations: 0 / 341.1 MB, free: 6.883 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01773/0.1425, allocations: 4.652 MB / 345.7 MB, free: 2.223 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002223/0.1428, allocations: 215.5 kB / 345.9 MB, free: 1.98 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.811/1.954, allocations: 4 kB / 345.9 MB, free: 1.977 MB / 286.1 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) Environment - environmentSimulation: 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