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.001085/0.001085, allocations: 92.75 kB / 16.95 MB, free: 6.445 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.001194/0.001194, allocations: 183.3 kB / 17.84 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.557/1.557, allocations: 205.4 MB / 224 MB, free: 13.17 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.0006504/0.0006505, allocations: 8 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1102, allocations: 47.58 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002616/0.1128, allocations: 1.854 MB / 330.3 MB, free: 2.125 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001505/0.1144, allocations: 0.898 MB / 331.2 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.1145, allocations: 7.938 kB / 331.2 MB, free: 1.211 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003523/0.1149, allocations: 79.7 kB / 331.3 MB, free: 1.133 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002746/0.1151, allocations: 107.4 kB / 331.4 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002996/0.1155, allocations: 107.8 kB / 331.5 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002899/0.1158, allocations: 258.8 kB / 331.8 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001711/0.1159, allocations: 68.58 kB / 331.8 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.1161, allocations: 99.61 kB / 331.9 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001484/0.1162, allocations: 103.5 kB / 332 MB, free: 412 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.971e-05/0.1163, allocations: 12 kB / 332 MB, free: 400 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/0.1164, allocations: 32 kB / 332.1 MB, free: 368 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.679e-05/0.1165, allocations: 55.75 kB / 332.1 MB, free: 312 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.602e-05/0.1165, allocations: 65.58 kB / 332.2 MB, free: 240 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002556/0.1168, allocations: 203.8 kB / 332.4 MB, free: 36 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1168, allocations: 0 / 332.4 MB, free: 36 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1168, allocations: 4 kB / 332.4 MB, free: 32 kB / 270.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1168, allocations: 0 / 332.4 MB, free: 32 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.0007831/0.1176, allocations: 0.5067 MB / 332.9 MB, free: 15.48 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.1177, allocations: 8.031 kB / 332.9 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.775e-05/0.1177, allocations: 50.55 kB / 332.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.1179, allocations: 27.7 kB / 333 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002682/0.1181, allocations: 255.5 kB / 333.2 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.1182, allocations: 16 kB / 333.2 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.101e-05/0.1182, allocations: 16 kB / 333.3 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002955/0.1185, allocations: 165.2 kB / 333.4 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.1185, allocations: 0 / 333.4 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.784e-05/0.1186, allocations: 4 kB / 333.4 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.1186, allocations: 4 kB / 333.4 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000259/0.1188, allocations: 111.9 kB / 333.5 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007709/0.1196, allocations: 0.5665 MB / 334.1 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002832/0.1199, allocations: 162.5 kB / 334.3 MB, free: 13.99 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.1201, allocations: 92.77 kB / 334.3 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.1201, allocations: 0 / 334.3 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002718/0.1204, allocations: 115.7 kB / 334.5 MB, free: 13.77 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.533e-06/0.1204, allocations: 0 / 334.5 MB, free: 13.77 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005134/0.1209, allocations: 237.2 kB / 334.7 MB, free: 13.53 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/0.121, allocations: 55.41 kB / 334.7 MB, free: 13.46 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/0.1212, allocations: 256.9 kB / 335 MB, free: 13.2 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.1213, allocations: 29.7 kB / 335 MB, free: 13.17 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.1214, allocations: 144.3 kB / 335.2 MB, free: 13.02 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.747e-05/0.1215, allocations: 67.05 kB / 335.2 MB, free: 12.96 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.688e-06/0.1215, allocations: 7.938 kB / 335.2 MB, free: 12.95 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.1217, allocations: 334.8 kB / 335.6 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.1218, allocations: 47.97 kB / 335.6 MB, free: 12.57 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.1219, allocations: 87.59 kB / 335.7 MB, free: 12.47 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001289/0.1221, allocations: 52.94 kB / 335.7 MB, free: 12.42 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1221, allocations: 4 kB / 335.8 MB, free: 12.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003538/0.1224, allocations: 206.9 kB / 336 MB, free: 12.21 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1225, allocations: 11.94 kB / 336 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.1225, allocations: 0 / 336 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.1225, allocations: 4.094 kB / 336 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002137/0.1227, allocations: 47.98 kB / 336 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.1227, allocations: 0 / 336 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.1229, allocations: 23.77 kB / 336 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.861e-05/0.1229, allocations: 16 kB / 336.1 MB, free: 12.11 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.000146/0.123, allocations: 141.8 kB / 336.2 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.757e-05/0.1231, allocations: 23.67 kB / 336.2 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.561e-05/0.1232, allocations: 34.19 kB / 336.3 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.1232, allocations: 7.984 kB / 336.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.375e-06/0.1232, allocations: 0 / 336.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.1232, allocations: 0 / 336.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002987/0.1235, allocations: 281.4 kB / 336.5 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1235, allocations: 0 / 336.5 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.1237, allocations: 39.92 kB / 336.6 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.199e-06/0.1237, allocations: 4 kB / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.1237, allocations: 3.953 kB / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1237, allocations: 3.984 kB / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1238, allocations: 0 / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004901/0.1243, allocations: 280.7 kB / 336.9 MB, free: 11.22 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.734e-05/0.1243, allocations: 104.9 kB / 337 MB, free: 11.1 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.371e-05/0.1244, allocations: 0 / 337 MB, free: 11.1 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.571e-05/0.1245, allocations: 15.89 kB / 337 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.061e-05/0.1245, allocations: 11.98 kB / 337 MB, free: 11.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.931e-05/0.1246, allocations: 11.98 kB / 337 MB, free: 11.06 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001908/0.1248, allocations: 188.5 kB / 337.2 MB, free: 10.88 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1248, allocations: 0 / 337.2 MB, free: 10.88 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000296/0.1251, allocations: 59.84 kB / 337.2 MB, free: 10.82 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.00186/0.1269, allocations: 1.119 MB / 338.4 MB, free: 9.688 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003572/0.1273, allocations: 148 kB / 338.5 MB, free: 9.543 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.1273, allocations: 0 / 338.5 MB, free: 9.543 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.1275, allocations: 80.03 kB / 338.6 MB, free: 9.465 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003588/0.1279, allocations: 40.64 kB / 338.6 MB, free: 9.426 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.1299, allocations: 1.427 MB / 340.1 MB, free: 7.945 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003606/0.1303, allocations: 0.7404 MB / 340.8 MB, free: 7.18 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001117/0.1304, allocations: 33.92 kB / 340.8 MB, free: 7.148 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001897/0.1306, allocations: 75.41 kB / 340.9 MB, free: 7.074 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1306, allocations: 0 / 340.9 MB, free: 7.074 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01689/0.1475, allocations: 4.679 MB / 345.6 MB, free: 2.383 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004722/0.148, allocations: 216.5 kB / 345.8 MB, free: 2.145 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.326/2.474, allocations: 0 / 345.8 MB, free: 2.145 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