Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001649/0.001649, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001743/0.001743, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.583/1.583, allocations: 227.7 MB / 247 MB, free: 10.35 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002072/0.002072, allocations: 60.91 kB / 307.3 MB, free: 424 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09727/0.09935, allocations: 50.54 MB / 357.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003924/0.1033, allocations: 2.247 MB / 360.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002027/0.1054, allocations: 1.219 MB / 361.3 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.883e-05/0.1055, allocations: 7.938 kB / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000333/0.1058, allocations: 91.5 kB / 361.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003845/0.1062, allocations: 171 kB / 361.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002662/0.1065, allocations: 111.6 kB / 361.7 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000334/0.1068, allocations: 294.8 kB / 362 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002017/0.1071, allocations: 92.55 kB / 362.1 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.1072, allocations: 107.6 kB / 362.2 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.1074, allocations: 127.5 kB / 362.3 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.827e-05/0.1074, allocations: 20 kB / 362.3 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001325/0.1076, allocations: 59.91 kB / 362.4 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.717e-05/0.1077, allocations: 51.84 kB / 362.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.1078, allocations: 115.3 kB / 362.6 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000356/0.1082, allocations: 295.3 kB / 362.8 MB, free: 8.852 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1082, allocations: 3.938 kB / 362.8 MB, free: 8.848 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1082, allocations: 0 / 362.8 MB, free: 8.848 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.1082, allocations: 0 / 362.8 MB, free: 8.848 MB / 302.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.0008308/0.109, allocations: 0.5536 MB / 363.4 MB, free: 8.246 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.1091, allocations: 12.03 kB / 363.4 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.472e-05/0.1092, allocations: 50.67 kB / 363.5 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.1093, allocations: 28.66 kB / 363.5 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00033/0.1096, allocations: 267.4 kB / 363.8 MB, free: 7.848 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.1097, allocations: 12.38 kB / 363.8 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.089e-05/0.1097, allocations: 19.94 kB / 363.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003254/0.11, allocations: 161.6 kB / 363.9 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.1101, allocations: 4 kB / 363.9 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.1101, allocations: 4 kB / 363.9 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.1101, allocations: 4 kB / 364 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002551/0.1104, allocations: 119.7 kB / 364.1 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008718/0.1112, allocations: 0.5741 MB / 364.6 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003126/0.1116, allocations: 158.5 kB / 364.8 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/0.1117, allocations: 84.83 kB / 364.9 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.1118, allocations: 0 / 364.9 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002729/0.112, allocations: 123.3 kB / 365 MB, free: 6.516 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.433e-06/0.1121, allocations: 0 / 365 MB, free: 6.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004972/0.1126, allocations: 232.9 kB / 365.2 MB, free: 6.285 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.1126, allocations: 51.41 kB / 365.3 MB, free: 6.223 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002803/0.1129, allocations: 261 kB / 365.5 MB, free: 5.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/0.1129, allocations: 29.7 kB / 365.6 MB, free: 5.922 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.113, allocations: 148.3 kB / 365.7 MB, free: 5.773 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.373e-05/0.1131, allocations: 71.02 kB / 365.8 MB, free: 5.703 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.932e-05/0.1132, allocations: 53.55 kB / 365.8 MB, free: 5.645 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1134, allocations: 334.8 kB / 366.2 MB, free: 5.309 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.1135, allocations: 55.91 kB / 366.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.1137, allocations: 83.41 kB / 366.3 MB, free: 5.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.1139, allocations: 157.8 kB / 366.4 MB, free: 4.996 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1139, allocations: 0 / 366.4 MB, free: 4.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003543/0.1143, allocations: 193.3 kB / 366.6 MB, free: 4.801 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.1143, allocations: 4 kB / 366.6 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1143, allocations: 4 kB / 366.6 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.1144, allocations: 0 / 366.6 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002031/0.1146, allocations: 51.95 kB / 366.7 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.1146, allocations: 11.98 kB / 366.7 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.384e-05/0.1147, allocations: 15.75 kB / 366.7 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.1147, allocations: 12 kB / 366.7 MB, free: 4.703 MB / 302.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.0001467/0.1149, allocations: 145.8 kB / 366.9 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.054e-05/0.1149, allocations: 23.66 kB / 366.9 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.737e-05/0.115, allocations: 26.19 kB / 366.9 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.115, allocations: 11.92 kB / 366.9 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.115, allocations: 0 / 366.9 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.115, allocations: 4 kB / 366.9 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003025/0.1153, allocations: 289.4 kB / 367.2 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1153, allocations: 0 / 367.2 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001803/0.1155, allocations: 31.98 kB / 367.3 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.1155, allocations: 3.984 kB / 367.3 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.1156, allocations: 8 kB / 367.3 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-05/0.1156, allocations: 7.875 kB / 367.3 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1156, allocations: 0 / 367.3 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005232/0.1161, allocations: 280.7 kB / 367.5 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.377e-05/0.1162, allocations: 100.8 kB / 367.6 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.1162, allocations: 3.938 kB / 367.6 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.653e-05/0.1163, allocations: 12 kB / 367.7 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.282e-05/0.1164, allocations: 7.984 kB / 367.7 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.1164, allocations: 8 kB / 367.7 MB, free: 3.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001944/0.1166, allocations: 192.5 kB / 367.9 MB, free: 3.473 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.1166, allocations: 4 kB / 367.9 MB, free: 3.469 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002752/0.1169, allocations: 59.84 kB / 367.9 MB, free: 3.41 MB / 302.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.002219/0.1191, allocations: 1.126 MB / 369.1 MB, free: 2.418 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003477/0.1195, allocations: 155.8 kB / 369.2 MB, free: 2.266 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1195, allocations: 0 / 369.2 MB, free: 2.266 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001425/0.1196, allocations: 72.11 kB / 369.3 MB, free: 2.195 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003388/0.12, allocations: 62.97 kB / 369.3 MB, free: 2.141 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1464/0.2664, allocations: 2.377 MB / 371.7 MB, free: 19.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002037/0.2666, allocations: 0.755 MB / 372.5 MB, free: 18.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001688/0.2668, allocations: 25.64 kB / 372.5 MB, free: 18.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.2669, allocations: 72.73 kB / 372.6 MB, free: 18.52 MB / 302.1 MB Notification: Performance of SimCode: time 1.352e-06/0.267, allocations: 1.562 kB / 372.6 MB, free: 18.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03099/0.2979, allocations: 5.258 MB / 377.8 MB, free: 17.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.941/8.239, allocations: 17.94 kB / 377.8 MB, free: 17.95 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_1_0-beta_om_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1)