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.0007434/0.0007434, allocations: 91.25 kB / 16.65 MB, free: 6.59 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.0008837/0.0008836, allocations: 184.5 kB / 17.56 MB, free: 6.203 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.199/1.199, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002317/0.0002317, allocations: 12 kB / 301.5 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0843/0.08455, allocations: 50.41 MB / 351.9 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002122/0.0867, allocations: 1.93 MB / 353.9 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.08811, allocations: 1.044 MB / 354.9 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.357e-05/0.08821, allocations: 4 kB / 354.9 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002776/0.08849, allocations: 83.69 kB / 355 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002375/0.08874, allocations: 103.4 kB / 355.1 MB, free: 444 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002915/0.08904, allocations: 127 kB / 355.2 MB, free: 320 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002585/0.08931, allocations: 274.8 kB / 355.5 MB, free: 44 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.08948, allocations: 77.02 kB / 355.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.08961, allocations: 99.56 kB / 355.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001374/0.08975, allocations: 111.5 kB / 355.8 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.305e-05/0.08979, allocations: 8 kB / 355.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.0899, allocations: 47.92 kB / 355.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.939e-05/0.08997, allocations: 43.77 kB / 355.9 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.09008, allocations: 133.1 kB / 356 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000265/0.09035, allocations: 275.2 kB / 356.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.09036, allocations: 0 / 356.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.09037, allocations: 0 / 356.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.09038, allocations: 0 / 356.3 MB, free: 15.25 MB / 302.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.0006021/0.09098, allocations: 0.4953 MB / 356.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.09102, allocations: 8.031 kB / 356.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.772e-05/0.09108, allocations: 58.73 kB / 356.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.0912, allocations: 32.64 kB / 356.9 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002476/0.09145, allocations: 252.7 kB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.09148, allocations: 16.31 kB / 357.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.353e-05/0.09152, allocations: 19.94 kB / 357.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002707/0.0918, allocations: 161.4 kB / 357.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.09182, allocations: 3.906 kB / 357.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.09184, allocations: 15.94 kB / 357.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.09185, allocations: 4 kB / 357.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002149/0.09208, allocations: 111.9 kB / 357.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007701/0.09286, allocations: 0.5699 MB / 358 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002743/0.09314, allocations: 170.5 kB / 358.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.0933, allocations: 84.83 kB / 358.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.09333, allocations: 7.984 kB / 358.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002152/0.09355, allocations: 110 kB / 358.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.493e-06/0.09357, allocations: 0 / 358.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004406/0.09401, allocations: 233.7 kB / 358.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.09406, allocations: 51.41 kB / 358.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002167/0.09428, allocations: 257 kB / 358.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.09431, allocations: 29.7 kB / 358.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.991e-05/0.09441, allocations: 144.3 kB / 359.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.077e-05/0.09446, allocations: 66.95 kB / 359.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.566e-05/0.0945, allocations: 29.7 kB / 359.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.09461, allocations: 334.8 kB / 359.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.09472, allocations: 51.98 kB / 359.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/0.09485, allocations: 87.34 kB / 359.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002256/0.09508, allocations: 146.6 kB / 359.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.09509, allocations: 0 / 359.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003222/0.09542, allocations: 209.2 kB / 360 MB, free: 11.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.09544, allocations: 4 kB / 360 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.09545, allocations: 0 / 360 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.09547, allocations: 4 kB / 360 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.09566, allocations: 51.84 kB / 360 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.09568, allocations: 7.938 kB / 360 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.09579, allocations: 19.94 kB / 360.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.312e-05/0.09581, allocations: 8 kB / 360.1 MB, free: 11.19 MB / 302.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.0001254/0.09594, allocations: 148.1 kB / 360.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.887e-05/0.09598, allocations: 27.66 kB / 360.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.445e-05/0.09605, allocations: 30.17 kB / 360.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.09606, allocations: 3.938 kB / 360.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.09606, allocations: 0 / 360.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.09607, allocations: 4 kB / 360.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.09633, allocations: 285.5 kB / 360.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.09634, allocations: 0 / 360.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00016/0.0965, allocations: 35.98 kB / 360.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.09651, allocations: 0 / 360.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.09653, allocations: 8 kB / 360.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.09654, allocations: 3.938 kB / 360.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.09655, allocations: 0 / 360.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004351/0.09699, allocations: 283.2 kB / 360.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.818e-05/0.09705, allocations: 104.8 kB / 361 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.278e-05/0.09709, allocations: 8 kB / 361 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.29e-05/0.09718, allocations: 11.98 kB / 361 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.358e-05/0.09723, allocations: 15.98 kB / 361 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.09725, allocations: 4 kB / 361 MB, free: 10.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001374/0.0974, allocations: 184.5 kB / 361.2 MB, free: 9.969 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.0974, allocations: 0 / 361.2 MB, free: 9.969 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003123/0.09772, allocations: 63.83 kB / 361.3 MB, free: 9.906 MB / 302.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.00138/0.09911, allocations: 1.129 MB / 362.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000257/0.09937, allocations: 146.9 kB / 362.5 MB, free: 8.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.09939, allocations: 0 / 362.5 MB, free: 8.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.09951, allocations: 67.92 kB / 362.6 MB, free: 8.703 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.09984, allocations: 60.23 kB / 362.7 MB, free: 8.645 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002573/0.1024, allocations: 2.478 MB / 365.1 MB, free: 6.074 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.1027, allocations: 0.7521 MB / 365.9 MB, free: 5.293 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.1029, allocations: 29.92 kB / 365.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.103, allocations: 67.41 kB / 366 MB, free: 5.203 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.103, allocations: 4 kB / 366 MB, free: 5.199 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01402/0.117, allocations: 4.731 MB / 370.7 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/0.1173, allocations: 241 kB / 371 MB, free: 348 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/1.854, allocations: 0 / 371 MB, free: 348 kB / 302.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)