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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.001963/0.001963, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001003/0.001003, allocations: 43.27 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08276/0.08378, allocations: 49.45 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003482/0.08731, allocations: 2.216 MB / 352.4 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001622/0.08896, allocations: 1.087 MB / 353.5 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.08911, allocations: 8 kB / 353.5 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000351/0.08948, allocations: 95.5 kB / 353.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003175/0.08981, allocations: 119.3 kB / 353.7 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003729/0.0902, allocations: 152.1 kB / 353.8 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002959/0.0905, allocations: 286.8 kB / 354.1 MB, free: 340 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.09069, allocations: 81.09 kB / 354.2 MB, free: 248 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.09086, allocations: 115.6 kB / 354.3 MB, free: 132 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001654/0.09103, allocations: 115.5 kB / 354.4 MB, free: 16 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.007e-05/0.09109, allocations: 20.05 kB / 354.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001365/0.09123, allocations: 51.94 kB / 354.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.669e-05/0.09131, allocations: 55.81 kB / 354.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.09144, allocations: 123.3 kB / 354.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003083/0.09175, allocations: 279.3 kB / 354.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.09176, allocations: 4 kB / 354.9 MB, free: 15.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.09177, allocations: 0 / 354.9 MB, free: 15.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.615e-06/0.09179, allocations: 0 / 354.9 MB, free: 15.49 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.0007331/0.09252, allocations: 0.5381 MB / 355.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.09257, allocations: 11.97 kB / 355.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.852e-05/0.09262, allocations: 54.73 kB / 355.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.09276, allocations: 28.56 kB / 355.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002674/0.09304, allocations: 260.7 kB / 355.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.09306, allocations: 12.38 kB / 355.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.833e-05/0.0931, allocations: 31.86 kB / 355.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002829/0.09339, allocations: 161.2 kB / 356 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.09343, allocations: 3.984 kB / 356 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.852e-05/0.09347, allocations: 7.938 kB / 356 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.09349, allocations: 4 kB / 356 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000402/0.0939, allocations: 115.9 kB / 356.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001204/0.09513, allocations: 0.5699 MB / 356.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005029/0.09565, allocations: 170.4 kB / 356.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000275/0.09594, allocations: 92.81 kB / 357 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.09599, allocations: 0 / 357 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003835/0.09639, allocations: 111.4 kB / 357.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 2.765e-06/0.09641, allocations: 3.938 kB / 357.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0008264/0.09724, allocations: 233.6 kB / 357.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.09732, allocations: 51.41 kB / 357.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004239/0.09776, allocations: 249 kB / 357.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.257e-05/0.09781, allocations: 33.7 kB / 357.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.09796, allocations: 144.3 kB / 357.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.337e-05/0.09807, allocations: 71.03 kB / 357.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.0982, allocations: 37.7 kB / 357.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.09837, allocations: 338.8 kB / 358.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.09856, allocations: 55.98 kB / 358.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002373/0.09881, allocations: 83.41 kB / 358.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004521/0.09928, allocations: 150.5 kB / 358.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.09931, allocations: 0 / 358.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006167/0.09994, allocations: 209.2 kB / 358.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.09997, allocations: 4 kB / 358.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.09999, allocations: 0 / 358.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.33e-05/0.1, allocations: 4 kB / 358.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003708/0.1004, allocations: 51.84 kB / 358.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.1004, allocations: 4 kB / 358.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001784/0.1006, allocations: 19.75 kB / 358.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.252e-05/0.1007, allocations: 4 kB / 358.8 MB, free: 11.38 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.0002/0.1009, allocations: 145.9 kB / 358.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.496e-05/0.101, allocations: 23.75 kB / 359 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.919e-05/0.1011, allocations: 34.11 kB / 359 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.1011, allocations: 3.938 kB / 359 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1011, allocations: 0 / 359 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.1011, allocations: 11.92 kB / 359 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000431/0.1016, allocations: 285.4 kB / 359.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.1016, allocations: 0 / 359.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003208/0.1019, allocations: 31.98 kB / 359.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.102, allocations: 4 kB / 359.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.637e-05/0.102, allocations: 11.98 kB / 359.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.102, allocations: 3.938 kB / 359.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.102, allocations: 0 / 359.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006612/0.1027, allocations: 285.1 kB / 359.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.902e-05/0.1028, allocations: 100.8 kB / 359.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.687e-05/0.1029, allocations: 11.92 kB / 359.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001318/0.103, allocations: 4.062 kB / 359.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.17e-05/0.1031, allocations: 15.98 kB / 359.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.683e-05/0.1031, allocations: 4 kB / 359.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002494/0.1034, allocations: 192.5 kB / 359.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1034, allocations: 0 / 359.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000479/0.1039, allocations: 55.94 kB / 360 MB, free: 10.09 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.002381/0.1063, allocations: 1.115 MB / 361.1 MB, free: 9.102 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005308/0.1068, allocations: 162.9 kB / 361.3 MB, free: 8.945 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1068, allocations: 0 / 361.3 MB, free: 8.945 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001979/0.107, allocations: 75.91 kB / 361.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000484/0.1075, allocations: 50.17 kB / 361.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00412/0.1117, allocations: 2.361 MB / 363.8 MB, free: 6.363 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.1121, allocations: 0.7441 MB / 364.5 MB, free: 5.594 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001703/0.1123, allocations: 29.92 kB / 364.5 MB, free: 5.562 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/0.1124, allocations: 75.41 kB / 364.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1125, allocations: 0 / 364.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02951/0.142, allocations: 5.163 MB / 369.8 MB, free: 432 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.678/7.82, allocations: 10.97 kB / 369.8 MB, free: 428 kB / 302.1 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/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)