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.00117/0.00117, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001201/0.001201, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 59.44 kB / 307 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08173/0.08289, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003366/0.08629, allocations: 2.237 MB / 359.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001826/0.08814, allocations: 1.235 MB / 361.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.08829, allocations: 4 kB / 361.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000311/0.08862, allocations: 87.52 kB / 361.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003927/0.08903, allocations: 171 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002667/0.0893, allocations: 115.6 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003365/0.08965, allocations: 290.8 kB / 361.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001842/0.08985, allocations: 96.52 kB / 361.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.09, allocations: 107.6 kB / 361.9 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.09019, allocations: 127.5 kB / 362 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.357e-05/0.09023, allocations: 20 kB / 362 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.09037, allocations: 47.98 kB / 362.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.192e-05/0.09045, allocations: 59.81 kB / 362.2 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.09057, allocations: 123.3 kB / 362.3 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003098/0.09089, allocations: 283.4 kB / 362.6 MB, free: 8.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.0909, allocations: 4 kB / 362.6 MB, free: 8.977 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.103e-06/0.09091, allocations: 4 kB / 362.6 MB, free: 8.973 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.09093, allocations: 0 / 362.6 MB, free: 8.973 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.0007279/0.09166, allocations: 0.5457 MB / 363.1 MB, free: 8.379 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.0917, allocations: 8.031 kB / 363.1 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.921e-05/0.09177, allocations: 54.73 kB / 363.2 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.09191, allocations: 32.64 kB / 363.2 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002729/0.09219, allocations: 267.4 kB / 363.5 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.09222, allocations: 8.375 kB / 363.5 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.78e-05/0.09226, allocations: 19.94 kB / 363.5 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002938/0.09256, allocations: 161.5 kB / 363.6 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.09259, allocations: 7.938 kB / 363.7 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.09261, allocations: 4 kB / 363.7 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.09262, allocations: 4 kB / 363.7 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002282/0.09285, allocations: 115.7 kB / 363.8 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007911/0.09365, allocations: 0.5741 MB / 364.3 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002896/0.09396, allocations: 166.5 kB / 364.5 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.09411, allocations: 84.83 kB / 364.6 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.557e-05/0.09414, allocations: 4 kB / 364.6 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002416/0.09439, allocations: 113.8 kB / 364.7 MB, free: 6.648 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.623e-06/0.0944, allocations: 0 / 364.7 MB, free: 6.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004506/0.09486, allocations: 233.6 kB / 364.9 MB, free: 6.414 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.0949, allocations: 59.41 kB / 365 MB, free: 6.344 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002289/0.09514, allocations: 257 kB / 365.2 MB, free: 6.082 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.09517, allocations: 33.7 kB / 365.3 MB, free: 6.043 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.485e-05/0.09526, allocations: 148.3 kB / 365.4 MB, free: 5.895 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.415e-05/0.09532, allocations: 71.03 kB / 365.5 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.084e-05/0.09538, allocations: 45.61 kB / 365.5 MB, free: 5.773 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.09549, allocations: 334.8 kB / 365.9 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.09561, allocations: 51.98 kB / 365.9 MB, free: 5.387 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.09574, allocations: 92.42 kB / 366 MB, free: 5.285 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002389/0.09599, allocations: 150.4 kB / 366.2 MB, free: 5.129 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.096, allocations: 0 / 366.2 MB, free: 5.129 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003179/0.09632, allocations: 205.3 kB / 366.4 MB, free: 4.922 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.09634, allocations: 4 kB / 366.4 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.09635, allocations: 4 kB / 366.4 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.09637, allocations: 0 / 366.4 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001972/0.09657, allocations: 51.84 kB / 366.4 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.09659, allocations: 4 kB / 366.4 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.158e-05/0.09669, allocations: 19.75 kB / 366.4 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.0967, allocations: 4 kB / 366.4 MB, free: 4.836 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.0001176/0.09683, allocations: 154.5 kB / 366.6 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.51e-05/0.09687, allocations: 19.72 kB / 366.6 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.614e-05/0.09694, allocations: 34.17 kB / 366.6 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.852e-06/0.09695, allocations: 7.938 kB / 366.6 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.09696, allocations: 3.938 kB / 366.7 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.09697, allocations: 0 / 366.7 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002478/0.09722, allocations: 289.4 kB / 366.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.09723, allocations: 0 / 366.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001758/0.09741, allocations: 39.98 kB / 367 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.09742, allocations: 0 / 367 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.09744, allocations: 0 / 367 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.09745, allocations: 11.94 kB / 367 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.09746, allocations: 3.938 kB / 367 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004624/0.09793, allocations: 290.8 kB / 367.3 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.555e-05/0.09799, allocations: 92.86 kB / 367.4 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.735e-05/0.09804, allocations: 11.94 kB / 367.4 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.802e-05/0.09812, allocations: 4 kB / 367.4 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.111e-05/0.09817, allocations: 11.98 kB / 367.4 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.0982, allocations: 16.03 kB / 367.4 MB, free: 3.773 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001625/0.09837, allocations: 192.5 kB / 367.6 MB, free: 3.586 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09838, allocations: 0 / 367.6 MB, free: 3.586 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002698/0.09865, allocations: 63.83 kB / 367.7 MB, free: 3.523 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.001465/0.1001, allocations: 1.116 MB / 368.8 MB, free: 2.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003285/0.1005, allocations: 154 kB / 368.9 MB, free: 2.371 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1005, allocations: 0 / 368.9 MB, free: 2.371 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.1006, allocations: 75.91 kB / 369 MB, free: 2.297 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003126/0.1009, allocations: 50.22 kB / 369 MB, free: 2.258 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1303/0.2313, allocations: 2.372 MB / 371.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001721/0.2315, allocations: 0.7502 MB / 372.2 MB, free: 18.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001511/0.2316, allocations: 35.7 kB / 372.2 MB, free: 18.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.2317, allocations: 72.89 kB / 372.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2317, allocations: 0 / 372.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02203/0.2538, allocations: 5.238 MB / 377.5 MB, free: 18.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.663/7.917, allocations: 15.27 kB / 377.5 MB, free: 18 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)