Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007057/0.0007058, allocations: 95.73 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001123/0.001123, allocations: 201.6 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 227.7 MB / 246.8 MB, free: 11.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001965/0.0001966, allocations: 8.172 kB / 307.8 MB, free: 0.6992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08262/0.08283, allocations: 51.52 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002267/0.08513, allocations: 1.932 MB / 361.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.08698, allocations: 1.193 MB / 362.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.08714, allocations: 4 kB / 362.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002985/0.08745, allocations: 87.62 kB / 362.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003669/0.08783, allocations: 143.3 kB / 362.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.08809, allocations: 91.84 kB / 362.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000328/0.08842, allocations: 282.8 kB / 363.1 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.08859, allocations: 81.86 kB / 363.2 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.08874, allocations: 99.64 kB / 363.3 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001599/0.08891, allocations: 111.5 kB / 363.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.474e-05/0.08894, allocations: 8 kB / 363.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001234/0.08907, allocations: 47.92 kB / 363.4 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.725e-05/0.08914, allocations: 47.83 kB / 363.5 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.08926, allocations: 133 kB / 363.6 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002877/0.08956, allocations: 275.3 kB / 363.9 MB, free: 8.637 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.08957, allocations: 0 / 363.9 MB, free: 8.637 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.08958, allocations: 0 / 363.9 MB, free: 8.637 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.08959, allocations: 0 / 363.9 MB, free: 8.637 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.0006848/0.09028, allocations: 0.5109 MB / 364.4 MB, free: 8.078 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.09033, allocations: 11.97 kB / 364.4 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.422e-05/0.0904, allocations: 50.67 kB / 364.4 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.09053, allocations: 32.56 kB / 364.5 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002703/0.09081, allocations: 263.5 kB / 364.7 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.09084, allocations: 12.38 kB / 364.7 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.62e-05/0.09088, allocations: 27.94 kB / 364.8 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002904/0.09118, allocations: 157.6 kB / 364.9 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.0912, allocations: 0 / 364.9 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.947e-05/0.09122, allocations: 8 kB / 364.9 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.09123, allocations: 4 kB / 364.9 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002319/0.09147, allocations: 115.7 kB / 365 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007906/0.09227, allocations: 0.5702 MB / 365.6 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/0.09256, allocations: 160.9 kB / 365.8 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.0927, allocations: 88.08 kB / 365.9 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.09274, allocations: 11.98 kB / 365.9 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002184/0.09296, allocations: 119.3 kB / 366 MB, free: 6.344 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.432e-06/0.09297, allocations: 0 / 366 MB, free: 6.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004395/0.09342, allocations: 228.1 kB / 366.2 MB, free: 6.117 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.09346, allocations: 55.41 kB / 366.3 MB, free: 6.051 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002214/0.09369, allocations: 257 kB / 366.5 MB, free: 5.789 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.09372, allocations: 29.7 kB / 366.5 MB, free: 5.754 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.152e-05/0.0938, allocations: 148.3 kB / 366.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.745e-05/0.09387, allocations: 78.92 kB / 366.8 MB, free: 5.527 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.663e-05/0.09392, allocations: 25.72 kB / 366.8 MB, free: 5.496 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.09403, allocations: 338.8 kB / 367.1 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.09414, allocations: 51.91 kB / 367.2 MB, free: 5.105 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.09427, allocations: 84.5 kB / 367.3 MB, free: 5.012 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002287/0.09451, allocations: 157.4 kB / 367.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.09452, allocations: 0 / 367.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003292/0.09485, allocations: 208.2 kB / 367.6 MB, free: 4.641 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.09488, allocations: 8 kB / 367.6 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.09489, allocations: 0 / 367.6 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.09491, allocations: 8.094 kB / 367.6 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.09513, allocations: 51.86 kB / 367.7 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.09515, allocations: 0 / 367.7 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.09527, allocations: 23.83 kB / 367.7 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.5e-05/0.09529, allocations: 8 kB / 367.7 MB, free: 4.543 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.0001367/0.09543, allocations: 150.4 kB / 367.9 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.45e-05/0.09547, allocations: 23.72 kB / 367.9 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.055e-05/0.09555, allocations: 30.17 kB / 367.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.09556, allocations: 7.938 kB / 367.9 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.09557, allocations: 0 / 367.9 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.09558, allocations: 0 / 367.9 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002898/0.09587, allocations: 293.3 kB / 368.2 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.09588, allocations: 0 / 368.2 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00017/0.09606, allocations: 39.91 kB / 368.2 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.09607, allocations: 0 / 368.2 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.0961, allocations: 8 kB / 368.2 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.0961, allocations: 3.938 kB / 368.2 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.09611, allocations: 3.938 kB / 368.3 MB, free: 3.934 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004626/0.09658, allocations: 283 kB / 368.5 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.165e-05/0.09665, allocations: 96.94 kB / 368.6 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.326e-05/0.09669, allocations: 7.938 kB / 368.6 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.599e-05/0.09679, allocations: 7.984 kB / 368.6 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.057e-05/0.09683, allocations: 15.98 kB / 368.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.09686, allocations: 4 kB / 368.7 MB, free: 3.492 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001656/0.09703, allocations: 196.5 kB / 368.9 MB, free: 3.301 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09704, allocations: 0 / 368.9 MB, free: 3.301 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000264/0.0973, allocations: 67.83 kB / 368.9 MB, free: 3.234 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.001426/0.09874, allocations: 1.121 MB / 370 MB, free: 2.227 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002723/0.09902, allocations: 142.8 kB / 370.2 MB, free: 2.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.09903, allocations: 0 / 370.2 MB, free: 2.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000128/0.09917, allocations: 79.84 kB / 370.3 MB, free: 2.012 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003165/0.09949, allocations: 40.41 kB / 370.3 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1383/0.2378, allocations: 2.497 MB / 372.8 MB, free: 18.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001777/0.238, allocations: 0.7543 MB / 373.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001445/0.2381, allocations: 28.12 kB / 373.6 MB, free: 17.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.2383, allocations: 73.47 kB / 373.6 MB, free: 17.46 MB / 302.1 MB Notification: Performance of SimCode: time 6.92e-07/0.2383, allocations: 3.969 kB / 373.6 MB, free: 17.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01423/0.2525, allocations: 4.803 MB / 378.5 MB, free: 17.19 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001413/0.2527, allocations: 231.1 kB / 378.7 MB, free: 16.94 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.73/1.983, allocations: 0 / 378.7 MB, free: 16.94 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1)