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.001307/0.001307, allocations: 111.9 kB / 17.28 MB, free: 6.219 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.00123/0.001231, allocations: 193.3 kB / 18.2 MB, free: 5.301 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.271/1.271, allocations: 205.1 MB / 224 MB, free: 12.36 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.001645/0.001645, allocations: 43.94 kB / 280.2 MB, free: 3.391 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1068, allocations: 46.62 MB / 326.9 MB, free: 4.695 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003794/0.1106, allocations: 2.282 MB / 329.2 MB, free: 2.391 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.1123, allocations: 0.9558 MB / 330.1 MB, free: 1.426 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001648/0.1125, allocations: 4 kB / 330.1 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003932/0.1129, allocations: 75.7 kB / 330.2 MB, free: 1.348 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003656/0.1133, allocations: 111.4 kB / 330.3 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000349/0.1136, allocations: 107.8 kB / 330.4 MB, free: 1.133 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003302/0.114, allocations: 286.9 kB / 330.7 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.1142, allocations: 92.3 kB / 330.8 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.1144, allocations: 103.6 kB / 330.9 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001809/0.1145, allocations: 127.5 kB / 331 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.048e-05/0.1146, allocations: 16 kB / 331 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.1147, allocations: 55.98 kB / 331.1 MB, free: 476 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.002e-05/0.1148, allocations: 67.69 kB / 331.1 MB, free: 408 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.1149, allocations: 111.4 kB / 331.2 MB, free: 296 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003078/0.1152, allocations: 279.3 kB / 331.5 MB, free: 16 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1152, allocations: 0 / 331.5 MB, free: 16 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1153, allocations: 4 kB / 331.5 MB, free: 12 kB / 270.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.1153, allocations: 0 / 331.5 MB, free: 12 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.0007488/0.116, allocations: 0.542 MB / 332.1 MB, free: 15.42 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.1161, allocations: 8.031 kB / 332.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.766e-05/0.1161, allocations: 46.73 kB / 332.1 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.1163, allocations: 40.56 kB / 332.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002575/0.1165, allocations: 260.6 kB / 332.4 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.1165, allocations: 16.38 kB / 332.4 MB, free: 15.01 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.698e-05/0.1166, allocations: 19.92 kB / 332.4 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003089/0.1169, allocations: 169.1 kB / 332.6 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.1169, allocations: 0 / 332.6 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.117, allocations: 8 kB / 332.6 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.117, allocations: 4 kB / 332.6 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002346/0.1172, allocations: 119.9 kB / 332.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000796/0.118, allocations: 0.5624 MB / 333.3 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002871/0.1183, allocations: 158.5 kB / 333.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001459/0.1185, allocations: 88.83 kB / 333.5 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.1185, allocations: 4 kB / 333.5 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002592/0.1188, allocations: 127.5 kB / 333.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.483e-06/0.1188, allocations: 4 kB / 333.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.000465/0.1192, allocations: 229.3 kB / 333.9 MB, free: 13.45 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.52e-05/0.1193, allocations: 55.41 kB / 333.9 MB, free: 13.38 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.1195, allocations: 249 kB / 334.2 MB, free: 13.13 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.1196, allocations: 25.7 kB / 334.2 MB, free: 13.1 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.359e-05/0.1196, allocations: 148.3 kB / 334.4 MB, free: 12.95 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.001e-05/0.1197, allocations: 67.09 kB / 334.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.176e-05/0.1198, allocations: 37.72 kB / 334.5 MB, free: 12.84 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1199, allocations: 342.8 kB / 334.8 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.12, allocations: 51.97 kB / 334.8 MB, free: 12.45 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.1202, allocations: 87.34 kB / 334.9 MB, free: 12.35 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002284/0.1204, allocations: 147.3 kB / 335.1 MB, free: 12.19 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.1204, allocations: 0 / 335.1 MB, free: 12.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003224/0.1207, allocations: 205.2 kB / 335.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.1208, allocations: 7.938 kB / 335.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.1208, allocations: 4 kB / 335.3 MB, free: 11.97 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.1208, allocations: 0 / 335.3 MB, free: 11.97 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001973/0.121, allocations: 47.86 kB / 335.3 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.121, allocations: 4 kB / 335.3 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.1211, allocations: 27.92 kB / 335.4 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.1211, allocations: 8 kB / 335.4 MB, free: 11.89 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 ($PRE.lossTable.nextTimeEvent,$whenCondition1,lossTable.nextTimeEventScaled,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001222/0.1213, allocations: 145.7 kB / 335.5 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.369e-05/0.1213, allocations: 23.72 kB / 335.5 MB, free: 11.71 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.64e-05/0.1214, allocations: 34.17 kB / 335.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1214, allocations: 3.938 kB / 335.6 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1214, allocations: 0 / 335.6 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.1214, allocations: 11.98 kB / 335.6 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002452/0.1217, allocations: 285.4 kB / 335.9 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1217, allocations: 0 / 335.9 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001747/0.1219, allocations: 35.98 kB / 335.9 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1219, allocations: 0 / 335.9 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.1219, allocations: 7.984 kB / 335.9 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.159e-05/0.1219, allocations: 11.88 kB / 335.9 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1219, allocations: 0 / 335.9 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004484/0.1224, allocations: 284.7 kB / 336.2 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.173e-05/0.1224, allocations: 92.95 kB / 336.3 MB, free: 10.87 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.629e-05/0.1225, allocations: 11.92 kB / 336.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.5e-05/0.1226, allocations: 4 kB / 336.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.365e-05/0.1226, allocations: 15.98 kB / 336.3 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.1226, allocations: 4 kB / 336.3 MB, free: 10.84 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001552/0.1228, allocations: 188.5 kB / 336.5 MB, free: 10.65 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1228, allocations: 0 / 336.5 MB, free: 10.65 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002571/0.1231, allocations: 59.84 kB / 336.6 MB, free: 10.59 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00148/0.1246, allocations: 1.124 MB / 337.7 MB, free: 9.457 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003107/0.1249, allocations: 148 kB / 337.8 MB, free: 9.312 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1249, allocations: 192 / 337.8 MB, free: 9.312 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.125, allocations: 87.81 kB / 337.9 MB, free: 9.227 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003576/0.1254, allocations: 44.64 kB / 338 MB, free: 9.184 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/0.1281, allocations: 2.427 MB / 340.4 MB, free: 6.656 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/0.1285, allocations: 0.7558 MB / 341.2 MB, free: 5.875 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001108/0.1286, allocations: 29.94 kB / 341.2 MB, free: 5.848 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.1287, allocations: 71.41 kB / 341.3 MB, free: 5.777 MB / 286.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1287, allocations: 0 / 341.3 MB, free: 5.777 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01692/0.1456, allocations: 5.086 MB / 346.3 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002268/0.1459, allocations: 229.8 kB / 346.6 MB, free: 412 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.954/2.099, allocations: 4.062 kB / 346.6 MB, free: 408 kB / 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/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)