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.001291/0.001291, allocations: 106.5 kB / 17.73 MB, free: 5.363 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.001247/0.001247, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.352/1.352, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.00161/0.00161, allocations: 55.92 kB / 328 MB, free: 3.84 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08729/0.08891, allocations: 46.62 MB / 374.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003493/0.09244, allocations: 2.232 MB / 376.9 MB, free: 2.859 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.09409, allocations: 0.9594 MB / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.09421, allocations: 4 kB / 377.8 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003508/0.0946, allocations: 103.5 kB / 377.9 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003007/0.09491, allocations: 123.2 kB / 378 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003196/0.09524, allocations: 123.7 kB / 378.2 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003237/0.09557, allocations: 286.8 kB / 378.4 MB, free: 1.262 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.09577, allocations: 88.56 kB / 378.5 MB, free: 1.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000153/0.09593, allocations: 111.6 kB / 378.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001797/0.09611, allocations: 131.5 kB / 378.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.36e-05/0.09616, allocations: 16 kB / 378.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.09629, allocations: 55.92 kB / 378.8 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.692e-05/0.09638, allocations: 51.83 kB / 378.9 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.0965, allocations: 115.3 kB / 379 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003787/0.09689, allocations: 290.8 kB / 379.3 MB, free: 428 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.0969, allocations: 0 / 379.3 MB, free: 428 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.09691, allocations: 0 / 379.3 MB, free: 428 kB / 318.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.09692, allocations: 0 / 379.3 MB, free: 428 kB / 318.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.167/0.2639, allocations: 0.5475 MB / 379.8 MB, free: 13 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.264, allocations: 8.938 kB / 379.8 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.008e-05/0.2641, allocations: 54.7 kB / 379.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001755/0.2642, allocations: 28.61 kB / 379.9 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003579/0.2646, allocations: 254.3 kB / 380.2 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.2646, allocations: 14.81 kB / 380.2 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.751e-05/0.2647, allocations: 14.94 kB / 380.2 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003681/0.2651, allocations: 169.8 kB / 380.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.2651, allocations: 5.438 kB / 380.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.014e-05/0.2651, allocations: 5 kB / 380.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.2651, allocations: 6.688 kB / 380.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002665/0.2654, allocations: 113.6 kB / 380.5 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009175/0.2663, allocations: 0.5643 MB / 381.1 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/0.2667, allocations: 163.6 kB / 381.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.2668, allocations: 86.23 kB / 381.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.823e-05/0.2669, allocations: 7.672 kB / 381.3 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002289/0.2671, allocations: 113.7 kB / 381.4 MB, free: 12.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.633e-06/0.2671, allocations: 3.938 kB / 381.4 MB, free: 12.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005027/0.2676, allocations: 231.6 kB / 381.7 MB, free: 12.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.2677, allocations: 58.28 kB / 381.7 MB, free: 12.2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003081/0.268, allocations: 247.7 kB / 382 MB, free: 12.1 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.268, allocations: 31.08 kB / 382 MB, free: 12.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.524e-05/0.2681, allocations: 152.8 kB / 382.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.126e-05/0.2682, allocations: 70.58 kB / 382.2 MB, free: 11.92 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.035e-05/0.2682, allocations: 39.19 kB / 382.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.877e-05/0.2683, allocations: 340.7 kB / 382.6 MB, free: 11.56 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.2684, allocations: 51.19 kB / 382.6 MB, free: 11.55 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.2686, allocations: 92.34 kB / 382.7 MB, free: 11.49 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002404/0.2688, allocations: 144 kB / 382.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.2688, allocations: 0.5 kB / 382.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003831/0.2692, allocations: 210.8 kB / 383.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.2693, allocations: 9.219 kB / 383.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.2693, allocations: 1.75 kB / 383.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.2693, allocations: 1.312 kB / 383.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002081/0.2695, allocations: 50.95 kB / 383.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.034e-06/0.2695, allocations: 3.406 kB / 383.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.649e-05/0.2696, allocations: 16.14 kB / 383.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.138e-05/0.2696, allocations: 13.97 kB / 383.2 MB, free: 11.28 MB / 318.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.000113/0.2698, allocations: 142.3 kB / 383.3 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.065e-05/0.2698, allocations: 23.05 kB / 383.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.375e-05/0.2699, allocations: 40.48 kB / 383.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.2699, allocations: 2.594 kB / 383.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.2699, allocations: 4.203 kB / 383.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.2699, allocations: 1.5 kB / 383.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002527/0.2702, allocations: 290.3 kB / 383.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2702, allocations: 0 / 383.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001673/0.2703, allocations: 36.38 kB / 383.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2704, allocations: 1.562 kB / 383.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.2704, allocations: 5.75 kB / 383.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.2704, allocations: 5.656 kB / 383.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.2704, allocations: 0 / 383.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004434/0.2708, allocations: 287.8 kB / 384 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.971e-05/0.2709, allocations: 98.83 kB / 384.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.427e-05/0.2709, allocations: 9.859 kB / 384.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.547e-05/0.271, allocations: 7.266 kB / 384.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.344e-05/0.2711, allocations: 14 kB / 384.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.915e-05/0.2711, allocations: 11.42 kB / 384.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001486/0.2712, allocations: 187.1 kB / 384.3 MB, free: 10.48 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2713, allocations: 0 / 384.3 MB, free: 10.48 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002625/0.2715, allocations: 61.64 kB / 384.4 MB, free: 10.46 MB / 318.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.001844/0.2734, allocations: 1.118 MB / 385.5 MB, free: 9.562 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000312/0.2737, allocations: 142.9 kB / 385.6 MB, free: 9.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2737, allocations: 1.312 kB / 385.6 MB, free: 9.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001306/0.2738, allocations: 82.27 kB / 385.7 MB, free: 9.488 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003441/0.2742, allocations: 49 kB / 385.7 MB, free: 9.465 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002346/0.2766, allocations: 2.374 MB / 388.1 MB, free: 7.797 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001886/0.2768, allocations: 0.754 MB / 388.9 MB, free: 7.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.2769, allocations: 37.45 kB / 388.9 MB, free: 7.078 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.436e-05/0.277, allocations: 67.89 kB / 389 MB, free: 7.031 MB / 318.1 MB Notification: Performance of SimCode: time 3.01e-07/0.277, allocations: 0 / 389 MB, free: 7.031 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02964/0.3066, allocations: 5.272 MB / 394.2 MB, free: 6.051 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.007/8.314, allocations: 13.11 kB / 394.3 MB, free: 6.039 MB / 318.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)