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.001484/0.001484, allocations: 107.4 kB / 17.16 MB, free: 6.305 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.00135/0.001351, allocations: 198 kB / 18.07 MB, free: 5.41 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.489/1.489, allocations: 205.1 MB / 223.9 MB, free: 12.49 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.001095/0.001095, allocations: 51.92 kB / 280.1 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08733/0.08843, allocations: 46.62 MB / 326.7 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003435/0.09192, allocations: 2.278 MB / 329 MB, free: 2.512 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.09333, allocations: 0.9519 MB / 329.9 MB, free: 1.551 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.765e-05/0.09343, allocations: 4 kB / 329.9 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003181/0.09376, allocations: 87.67 kB / 330 MB, free: 1.461 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002318/0.094, allocations: 107.4 kB / 330.1 MB, free: 1.355 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002657/0.09428, allocations: 107.8 kB / 330.2 MB, free: 1.25 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002565/0.09454, allocations: 270.8 kB / 330.5 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.09471, allocations: 76.8 kB / 330.6 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.09484, allocations: 107.6 kB / 330.7 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001528/0.095, allocations: 127.5 kB / 330.8 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.004e-05/0.09504, allocations: 12 kB / 330.8 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001158/0.09516, allocations: 47.98 kB / 330.8 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.123e-05/0.09524, allocations: 55.75 kB / 330.9 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.09535, allocations: 111.3 kB / 331 MB, free: 468 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002698/0.09562, allocations: 275.4 kB / 331.3 MB, free: 192 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.09564, allocations: 0 / 331.3 MB, free: 192 kB / 270.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.09564, allocations: 0 / 331.3 MB, free: 192 kB / 270.1 MB Notification: Performance of Transformations before backend: time 5.249e-06/0.09565, allocations: 4 kB / 331.3 MB, free: 188 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.0007141/0.09637, allocations: 0.5381 MB / 331.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.09642, allocations: 8.031 kB / 331.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.765e-05/0.09647, allocations: 50.73 kB / 331.9 MB, free: 15.53 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/0.0966, allocations: 28.56 kB / 331.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002521/0.09686, allocations: 264.7 kB / 332.2 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.09689, allocations: 12.38 kB / 332.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.083e-05/0.09693, allocations: 23.94 kB / 332.2 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003021/0.09724, allocations: 169.1 kB / 332.4 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.09726, allocations: 0 / 332.4 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.09728, allocations: 4 kB / 332.4 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.0973, allocations: 8 kB / 332.4 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002285/0.09753, allocations: 111.9 kB / 332.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007333/0.09827, allocations: 0.5546 MB / 333 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002831/0.09857, allocations: 162.5 kB / 333.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.09872, allocations: 96.81 kB / 333.3 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/0.09876, allocations: 7.984 kB / 333.3 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002512/0.09901, allocations: 119.6 kB / 333.4 MB, free: 13.87 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.463e-06/0.09902, allocations: 0 / 333.4 MB, free: 13.87 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004637/0.09949, allocations: 229.2 kB / 333.6 MB, free: 13.64 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.09954, allocations: 63.34 kB / 333.7 MB, free: 13.57 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002078/0.09975, allocations: 245 kB / 333.9 MB, free: 13.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.09979, allocations: 37.7 kB / 334 MB, free: 13.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.322e-05/0.09987, allocations: 144.3 kB / 334.1 MB, free: 13.13 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.308e-05/0.09993, allocations: 67.09 kB / 334.2 MB, free: 13.06 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.003e-05/0.1, allocations: 41.7 kB / 334.2 MB, free: 13.02 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.1001, allocations: 334.8 kB / 334.6 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.1003, allocations: 47.97 kB / 334.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.1004, allocations: 95.41 kB / 334.7 MB, free: 12.53 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002231/0.1006, allocations: 143.3 kB / 334.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1006, allocations: 0 / 334.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003106/0.101, allocations: 205.2 kB / 335 MB, free: 12.17 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.101, allocations: 16.03 kB / 335.1 MB, free: 12.15 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.101, allocations: 0 / 335.1 MB, free: 12.15 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.101, allocations: 4 kB / 335.1 MB, free: 12.15 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.1012, allocations: 43.92 kB / 335.1 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.1012, allocations: 3.984 kB / 335.1 MB, free: 12.1 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.1013, allocations: 19.84 kB / 335.1 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.1014, allocations: 15.92 kB / 335.1 MB, free: 12.07 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.0001213/0.1015, allocations: 149.8 kB / 335.3 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.107e-05/0.1015, allocations: 19.72 kB / 335.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.48e-05/0.1016, allocations: 30.17 kB / 335.3 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.1016, allocations: 7.938 kB / 335.3 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1016, allocations: 0 / 335.3 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1016, allocations: 0 / 335.3 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002418/0.1019, allocations: 285.4 kB / 335.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1019, allocations: 0 / 335.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.1021, allocations: 39.91 kB / 335.7 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.183e-06/0.1021, allocations: 4 kB / 335.7 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.1021, allocations: 4 kB / 335.7 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.1021, allocations: 7.938 kB / 335.7 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1021, allocations: 0 / 335.7 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004396/0.1026, allocations: 280.7 kB / 335.9 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.115e-05/0.1026, allocations: 96.88 kB / 336 MB, free: 11.06 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.553e-05/0.1027, allocations: 11.94 kB / 336.1 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.219e-05/0.1027, allocations: 0 / 336.1 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.516e-05/0.1028, allocations: 20.05 kB / 336.1 MB, free: 11.03 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-05/0.1028, allocations: 7.984 kB / 336.1 MB, free: 11.02 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001487/0.103, allocations: 188.5 kB / 336.3 MB, free: 10.84 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.103, allocations: 0 / 336.3 MB, free: 10.84 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002602/0.1033, allocations: 59.84 kB / 336.3 MB, free: 10.78 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.001469/0.1047, allocations: 1.127 MB / 337.5 MB, free: 9.641 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002966/0.105, allocations: 140 kB / 337.6 MB, free: 9.504 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.105, allocations: 0 / 337.6 MB, free: 9.504 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.1052, allocations: 79.86 kB / 337.7 MB, free: 9.426 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000339/0.1055, allocations: 44.58 kB / 337.7 MB, free: 9.383 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002568/0.1081, allocations: 2.444 MB / 340.2 MB, free: 6.84 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002696/0.1084, allocations: 0.748 MB / 340.9 MB, free: 6.066 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000112/0.1085, allocations: 29.94 kB / 340.9 MB, free: 6.039 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.1086, allocations: 67.41 kB / 341 MB, free: 5.973 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1086, allocations: 0 / 341 MB, free: 5.973 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01532/0.124, allocations: 4.947 MB / 345.9 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001763/0.1242, allocations: 237.7 kB / 346.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.738/1.862, allocations: 4 kB / 346.2 MB, free: 0.7227 MB / 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)