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.001769/0.001769, allocations: 114.3 kB / 17.07 MB, free: 6.016 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.001285/0.001285, allocations: 189.4 kB / 18 MB, free: 5.098 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.379/1.379, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 47.92 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2547, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003617/0.2584, allocations: 2.242 MB / 402.5 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.2603, allocations: 1.079 MB / 403.5 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001141/0.2604, allocations: 7.938 kB / 403.5 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003358/0.2608, allocations: 91.56 kB / 403.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003013/0.2611, allocations: 123.2 kB / 403.8 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003989/0.2615, allocations: 143.6 kB / 403.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003466/0.2619, allocations: 286.8 kB / 404.2 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001904/0.2621, allocations: 88.58 kB / 404.3 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/0.2623, allocations: 111.6 kB / 404.4 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.2624, allocations: 119.5 kB / 404.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.897e-05/0.2625, allocations: 20 kB / 404.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.2626, allocations: 59.91 kB / 404.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.975e-05/0.2627, allocations: 51.78 kB / 404.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001292/0.2629, allocations: 115.4 kB / 404.7 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003963/0.2633, allocations: 289.8 kB / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2633, allocations: 0 / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2633, allocations: 0 / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.2633, allocations: 4 kB / 405 MB, free: 4.023 MB / 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.000838/0.2641, allocations: 0.5532 MB / 405.6 MB, free: 3.422 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.2642, allocations: 12.03 kB / 405.6 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.576e-05/0.2643, allocations: 54.72 kB / 405.6 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.2644, allocations: 32.75 kB / 405.7 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003444/0.2648, allocations: 252.9 kB / 405.9 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.502e-05/0.2648, allocations: 12.38 kB / 405.9 MB, free: 3.016 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.212e-05/0.2648, allocations: 19.92 kB / 405.9 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.2652, allocations: 169.2 kB / 406.1 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.2652, allocations: 3.953 kB / 406.1 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.013e-05/0.2652, allocations: 4 kB / 406.1 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.2652, allocations: 7.938 kB / 406.1 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002497/0.2655, allocations: 115.9 kB / 406.2 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009091/0.2664, allocations: 0.5587 MB / 406.8 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003255/0.2667, allocations: 170.5 kB / 407 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.2669, allocations: 88.83 kB / 407.1 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.534e-05/0.267, allocations: 4 kB / 407.1 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002453/0.2672, allocations: 122.3 kB / 407.2 MB, free: 1.688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.954e-06/0.2672, allocations: 4 kB / 407.2 MB, free: 1.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.000534/0.2678, allocations: 233.4 kB / 407.4 MB, free: 1.449 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.704e-05/0.2678, allocations: 55.36 kB / 407.5 MB, free: 1.383 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000275/0.2681, allocations: 257 kB / 407.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.2681, allocations: 29.7 kB / 407.7 MB, free: 1.082 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.2683, allocations: 144.5 kB / 407.9 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.669e-05/0.2683, allocations: 71.41 kB / 408 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.105e-05/0.2684, allocations: 41.72 kB / 408 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.2686, allocations: 334.8 kB / 408.3 MB, free: 496 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.2687, allocations: 55.97 kB / 408.4 MB, free: 440 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/0.2689, allocations: 83.41 kB / 408.5 MB, free: 344 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002618/0.2691, allocations: 147.1 kB / 408.6 MB, free: 188 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.2691, allocations: 4 kB / 408.6 MB, free: 184 kB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003755/0.2695, allocations: 201.5 kB / 408.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.2696, allocations: 4 kB / 408.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.2696, allocations: 4 kB / 408.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.2696, allocations: 0 / 408.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.2698, allocations: 51.86 kB / 408.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.2698, allocations: 4 kB / 408.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.707e-05/0.2699, allocations: 19.84 kB / 408.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.582e-05/0.27, allocations: 16.08 kB / 408.9 MB, free: 15.88 MB / 334.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.0001401/0.2701, allocations: 137.8 kB / 409 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.602e-05/0.2702, allocations: 23.86 kB / 409.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.575e-05/0.2702, allocations: 30.17 kB / 409.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.2703, allocations: 7.938 kB / 409.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2703, allocations: 0 / 409.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.2703, allocations: 3.984 kB / 409.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003105/0.2706, allocations: 281.3 kB / 409.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.2706, allocations: 4 kB / 409.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.2708, allocations: 39.92 kB / 409.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.2708, allocations: 4 kB / 409.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.2708, allocations: 4 kB / 409.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.2708, allocations: 3.938 kB / 409.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2708, allocations: 0 / 409.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005212/0.2714, allocations: 288.2 kB / 409.7 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.465e-05/0.2714, allocations: 96.89 kB / 409.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.571e-05/0.2715, allocations: 7.938 kB / 409.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.522e-05/0.2716, allocations: 12.06 kB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.98e-05/0.2716, allocations: 23.86 kB / 409.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.2717, allocations: 4 kB / 409.8 MB, free: 14.83 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001841/0.2718, allocations: 184.5 kB / 410 MB, free: 14.65 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2718, allocations: 3.938 kB / 410 MB, free: 14.65 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002681/0.2721, allocations: 55.94 kB / 410.1 MB, free: 14.59 MB / 334.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.002146/0.2743, allocations: 1.128 MB / 411.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003595/0.2747, allocations: 146.5 kB / 411.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2747, allocations: 0 / 411.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.2748, allocations: 75.91 kB / 411.4 MB, free: 13.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003459/0.2752, allocations: 48.77 kB / 411.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003127/0.2783, allocations: 2.36 MB / 413.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004163/0.2787, allocations: 0.748 MB / 414.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001158/0.2789, allocations: 33.92 kB / 414.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.279, allocations: 67.42 kB / 414.7 MB, free: 10 MB / 334.1 MB Notification: Performance of SimCode: time 6.52e-07/0.279, allocations: 0 / 414.7 MB, free: 10 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03104/0.31, allocations: 5.29 MB / 420 MB, free: 4.828 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.133/8.443, allocations: 14.27 kB / 420 MB, free: 4.816 MB / 334.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)