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.001863/0.001863, allocations: 102.9 kB / 17.58 MB, free: 5.418 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.002158/0.002158, allocations: 191.9 kB / 18.51 MB, free: 4.504 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.294/1.294, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001177/0.001177, allocations: 48.14 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07525/0.07644, allocations: 46.64 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003572/0.08004, allocations: 2.224 MB / 329.6 MB, free: 2.137 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.08166, allocations: 0.9596 MB / 330.6 MB, free: 1.168 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.08181, allocations: 7.938 kB / 330.6 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003246/0.08216, allocations: 87.56 kB / 330.7 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003109/0.08248, allocations: 127.2 kB / 330.8 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003303/0.08282, allocations: 123.7 kB / 330.9 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003044/0.08313, allocations: 286.8 kB / 331.2 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001702/0.08331, allocations: 88.34 kB / 331.3 MB, free: 472 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.08347, allocations: 111.6 kB / 331.4 MB, free: 360 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001817/0.08366, allocations: 127.5 kB / 331.5 MB, free: 232 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.649e-05/0.0837, allocations: 16 kB / 331.5 MB, free: 216 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001334/0.08384, allocations: 51.98 kB / 331.6 MB, free: 164 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.521e-05/0.08394, allocations: 63.7 kB / 331.6 MB, free: 100 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.08408, allocations: 115.5 kB / 331.7 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003378/0.08442, allocations: 275.2 kB / 332 MB, free: 15.71 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.08444, allocations: 0 / 332 MB, free: 15.71 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.08444, allocations: 0 / 332 MB, free: 15.71 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.685e-06/0.08446, allocations: 0 / 332 MB, free: 15.71 MB / 286.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.0008127/0.08527, allocations: 0.5459 MB / 332.6 MB, free: 15.12 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.08532, allocations: 8.031 kB / 332.6 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.01e-05/0.08537, allocations: 50.73 kB / 332.6 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.08552, allocations: 36.5 kB / 332.6 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.0858, allocations: 252.7 kB / 332.9 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.08583, allocations: 16.31 kB / 332.9 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.08587, allocations: 27.94 kB / 332.9 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003016/0.08618, allocations: 161.2 kB / 333.1 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.0862, allocations: 3.984 kB / 333.1 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.982e-05/0.08623, allocations: 8 kB / 333.1 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.08624, allocations: 4 kB / 333.1 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002342/0.08648, allocations: 111.9 kB / 333.2 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008274/0.08732, allocations: 0.5663 MB / 333.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003013/0.08763, allocations: 158.5 kB / 333.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.08779, allocations: 92.8 kB / 334 MB, free: 13.53 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.498e-05/0.08782, allocations: 4 kB / 334 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002557/0.08809, allocations: 119.6 kB / 334.2 MB, free: 13.39 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 2.925e-06/0.0881, allocations: 3.984 kB / 334.2 MB, free: 13.39 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004653/0.08857, allocations: 233.2 kB / 334.4 MB, free: 13.16 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.361e-05/0.08861, allocations: 55.41 kB / 334.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002542/0.08887, allocations: 249 kB / 334.7 MB, free: 12.84 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.0889, allocations: 29.7 kB / 334.7 MB, free: 12.8 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.482e-05/0.089, allocations: 152.3 kB / 334.9 MB, free: 12.65 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.264e-05/0.08906, allocations: 71.08 kB / 334.9 MB, free: 12.58 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.058e-05/0.08913, allocations: 41.7 kB / 335 MB, free: 12.53 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.08929, allocations: 334.8 kB / 335.3 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.0894, allocations: 47.98 kB / 335.3 MB, free: 12.15 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001229/0.08953, allocations: 87.34 kB / 335.4 MB, free: 12.05 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002272/0.08977, allocations: 147.4 kB / 335.6 MB, free: 11.89 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/0.08978, allocations: 0 / 335.6 MB, free: 11.89 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003375/0.09012, allocations: 205.2 kB / 335.8 MB, free: 11.69 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.09015, allocations: 7.938 kB / 335.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.09016, allocations: 4.094 kB / 335.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.09018, allocations: 4 kB / 335.8 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001991/0.09038, allocations: 51.84 kB / 335.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.0904, allocations: 4 kB / 335.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.411e-05/0.0905, allocations: 15.84 kB / 335.9 MB, free: 11.6 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.09051, allocations: 4 kB / 335.9 MB, free: 11.6 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.0001191/0.09064, allocations: 149.7 kB / 336 MB, free: 11.44 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.499e-05/0.09068, allocations: 23.72 kB / 336 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.341e-05/0.09075, allocations: 30.17 kB / 336.1 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.09076, allocations: 7.938 kB / 336.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.09078, allocations: 4 kB / 336.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.09079, allocations: 0 / 336.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000247/0.09104, allocations: 289.4 kB / 336.4 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.09105, allocations: 3.938 kB / 336.4 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.09122, allocations: 31.98 kB / 336.4 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.09123, allocations: 0 / 336.4 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.09126, allocations: 11.98 kB / 336.4 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.09126, allocations: 3.938 kB / 336.4 MB, free: 10.99 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.09127, allocations: 0 / 336.4 MB, free: 10.99 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000449/0.09172, allocations: 288.8 kB / 336.7 MB, free: 10.69 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.189e-05/0.09179, allocations: 92.95 kB / 336.8 MB, free: 10.58 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.09183, allocations: 11.92 kB / 336.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.568e-05/0.09191, allocations: 4 kB / 336.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.09196, allocations: 11.98 kB / 336.8 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.09198, allocations: 8 kB / 336.8 MB, free: 10.55 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001472/0.09213, allocations: 188.5 kB / 337 MB, free: 10.36 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.09214, allocations: 4.062 kB / 337 MB, free: 10.36 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000259/0.09241, allocations: 63.84 kB / 337.1 MB, free: 10.3 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.001435/0.09385, allocations: 1.123 MB / 338.2 MB, free: 9.16 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003131/0.09417, allocations: 153 kB / 338.3 MB, free: 9.012 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.09419, allocations: 0 / 338.3 MB, free: 9.012 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.09432, allocations: 79.86 kB / 338.4 MB, free: 8.934 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.09464, allocations: 40.64 kB / 338.5 MB, free: 8.895 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002559/0.09721, allocations: 2.373 MB / 340.8 MB, free: 6.418 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.09751, allocations: 0.7402 MB / 341.6 MB, free: 5.652 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.09763, allocations: 33.92 kB / 341.6 MB, free: 5.621 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.09774, allocations: 75.41 kB / 341.7 MB, free: 5.547 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09775, allocations: 0 / 341.7 MB, free: 5.547 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02229/0.12, allocations: 5.165 MB / 346.8 MB, free: 328 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.4/7.52, allocations: 8.031 kB / 346.8 MB, free: 320 kB / 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)