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.0006307/0.0006306, allocations: 96.86 kB / 17.3 MB, free: 6.387 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.0007761/0.0007757, allocations: 177.8 kB / 18.21 MB, free: 5.551 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.276/1.276, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004027/0.0004027, allocations: 12.47 kB / 281.5 MB, free: 3.324 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07992/0.08034, allocations: 47.58 MB / 329.1 MB, free: 3.668 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.0028/0.08319, allocations: 1.923 MB / 331 MB, free: 1.727 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.08474, allocations: 0.9325 MB / 331.9 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002136/0.08498, allocations: 4 kB / 331.9 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004288/0.08542, allocations: 87.67 kB / 332 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004372/0.08588, allocations: 103.4 kB / 332.1 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004092/0.08631, allocations: 107.8 kB / 332.2 MB, free: 500 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003734/0.08669, allocations: 270.8 kB / 332.5 MB, free: 228 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001769/0.08688, allocations: 76.81 kB / 332.5 MB, free: 152 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.08705, allocations: 95.62 kB / 332.6 MB, free: 56 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.08727, allocations: 119.6 kB / 332.8 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.122e-05/0.08731, allocations: 8 kB / 332.8 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001289/0.08744, allocations: 39.88 kB / 332.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.722e-05/0.08753, allocations: 51.7 kB / 332.9 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.08765, allocations: 129.1 kB / 333 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002945/0.08795, allocations: 275.3 kB / 333.3 MB, free: 15.44 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.08797, allocations: 0 / 333.3 MB, free: 15.44 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.08797, allocations: 0 / 333.3 MB, free: 15.44 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.08798, allocations: 0 / 333.3 MB, free: 15.44 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.0006579/0.08865, allocations: 0.4991 MB / 333.7 MB, free: 14.89 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.08869, allocations: 12.03 kB / 333.8 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.203e-05/0.08875, allocations: 54.73 kB / 333.8 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.08888, allocations: 28.66 kB / 333.8 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.08914, allocations: 256.7 kB / 334.1 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.08917, allocations: 12.38 kB / 334.1 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.719e-05/0.08921, allocations: 23.94 kB / 334.1 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.08951, allocations: 157.2 kB / 334.3 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.08953, allocations: 0 / 334.3 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/0.08956, allocations: 15.98 kB / 334.3 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.08957, allocations: 4 kB / 334.3 MB, free: 14.28 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002223/0.0898, allocations: 123.9 kB / 334.4 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000782/0.09059, allocations: 0.5546 MB / 335 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003072/0.09091, allocations: 170.5 kB / 335.1 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.09107, allocations: 84.83 kB / 335.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-05/0.09111, allocations: 7.984 kB / 335.2 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002495/0.09137, allocations: 119.6 kB / 335.4 MB, free: 13.16 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.462e-06/0.09138, allocations: 0 / 335.4 MB, free: 13.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004633/0.09185, allocations: 237.2 kB / 335.6 MB, free: 12.92 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.057e-05/0.0919, allocations: 55.41 kB / 335.6 MB, free: 12.85 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.09214, allocations: 249 kB / 335.9 MB, free: 12.6 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.09217, allocations: 29.7 kB / 335.9 MB, free: 12.56 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.697e-05/0.09226, allocations: 148.3 kB / 336.1 MB, free: 12.41 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.507e-05/0.09233, allocations: 67 kB / 336.1 MB, free: 12.35 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.682e-05/0.09237, allocations: 25.72 kB / 336.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.09251, allocations: 334.8 kB / 336.5 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.09262, allocations: 59.97 kB / 336.5 MB, free: 11.92 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001302/0.09276, allocations: 83.41 kB / 336.6 MB, free: 11.83 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002224/0.09299, allocations: 139.4 kB / 336.7 MB, free: 11.68 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.093, allocations: 0 / 336.7 MB, free: 11.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003238/0.09333, allocations: 205.3 kB / 336.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.09336, allocations: 7.938 kB / 337 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.09337, allocations: 4 kB / 337 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.09339, allocations: 0 / 337 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.09359, allocations: 47.86 kB / 337 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.09361, allocations: 4 kB / 337 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.09373, allocations: 31.67 kB / 337 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.09375, allocations: 8.094 kB / 337 MB, free: 11.37 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.000123/0.09388, allocations: 149.7 kB / 337.2 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.279e-05/0.09392, allocations: 19.81 kB / 337.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.736e-05/0.09399, allocations: 26.19 kB / 337.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.094, allocations: 7.922 kB / 337.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.09401, allocations: 0 / 337.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.09402, allocations: 4 kB / 337.3 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002539/0.09428, allocations: 285.4 kB / 337.5 MB, free: 10.83 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.09429, allocations: 0 / 337.5 MB, free: 10.83 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001644/0.09446, allocations: 39.92 kB / 337.6 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.09447, allocations: 0 / 337.6 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.0945, allocations: 8 kB / 337.6 MB, free: 10.78 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.09451, allocations: 7.922 kB / 337.6 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.09451, allocations: 0 / 337.6 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004426/0.09496, allocations: 280.9 kB / 337.9 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.914e-05/0.09503, allocations: 100.8 kB / 338 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.251e-05/0.09507, allocations: 7.938 kB / 338 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.518e-05/0.09516, allocations: 16.05 kB / 338 MB, free: 10.34 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.941e-05/0.0952, allocations: 11.98 kB / 338 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.09523, allocations: 4 kB / 338 MB, free: 10.32 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001544/0.09539, allocations: 188.5 kB / 338.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.973e-06/0.0954, allocations: 4 kB / 338.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002541/0.09565, allocations: 59.78 kB / 338.2 MB, free: 10.08 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.001415/0.09708, allocations: 1.122 MB / 339.4 MB, free: 8.945 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00028/0.09737, allocations: 140 kB / 339.5 MB, free: 8.809 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.09738, allocations: 0 / 339.5 MB, free: 8.809 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001248/0.09751, allocations: 79.81 kB / 339.6 MB, free: 8.73 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000367/0.09789, allocations: 52.77 kB / 339.6 MB, free: 8.68 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002686/0.1006, allocations: 2.486 MB / 342.1 MB, free: 6.098 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.1009, allocations: 0.748 MB / 342.9 MB, free: 5.324 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001035/0.101, allocations: 29.94 kB / 342.9 MB, free: 5.297 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.905e-05/0.1011, allocations: 71.41 kB / 343 MB, free: 5.227 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1011, allocations: 4 kB / 343 MB, free: 5.223 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02715/0.1283, allocations: 4.736 MB / 347.7 MB, free: 480 kB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001862/0.1285, allocations: 232.8 kB / 347.9 MB, free: 220 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.948/2.077, allocations: 3.938 kB / 347.9 MB, free: 216 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)