Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 180.4 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009755/0.0009754, allocations: 92.52 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003123/0.0003126, allocations: 4 kB / 351.2 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2424, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1125/0.355, allocations: 88.93 MB / 490.5 MB, free: 7.523 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002385/0.3553, allocations: 77.62 kB / 490.6 MB, free: 7.449 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2773/0.6326, allocations: 23.39 MB / 0.5019 GB, free: 93.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.6327, allocations: 0 / 0.5019 GB, free: 93.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001197/0.6328, allocations: 19.69 kB / 0.5019 GB, free: 93.11 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.004485/0.6373, allocations: 1.353 MB / 0.5033 GB, free: 92.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.896e-05/0.6374, allocations: 9.281 kB / 0.5033 GB, free: 92.66 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003516/0.6377, allocations: 150.2 kB / 0.5034 GB, free: 92.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005724/0.6383, allocations: 137.6 kB / 0.5036 GB, free: 92.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001109/0.6394, allocations: 0.5383 MB / 0.5041 GB, free: 92.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003147/0.6398, allocations: 197.2 kB / 0.5043 GB, free: 92.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001836/0.64, allocations: 104.1 kB / 0.5044 GB, free: 92.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002443/0.6424, allocations: 1.228 MB / 0.5056 GB, free: 92.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.798e-05/0.6425, allocations: 11.69 kB / 0.5056 GB, free: 92.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/0.6426, allocations: 44.05 kB / 0.5056 GB, free: 92.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.355e-05/0.6427, allocations: 23.31 kB / 0.5056 GB, free: 92.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002903/0.6456, allocations: 1.287 MB / 0.5069 GB, free: 92.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006592/0.6522, allocations: 3.696 MB / 0.5105 GB, free: 91.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001951/0.6542, allocations: 1.032 MB / 0.5115 GB, free: 90.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.474e-05/0.6543, allocations: 21.16 kB / 0.5115 GB, free: 90.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.6543, allocations: 55.38 kB / 0.5116 GB, free: 90.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=135): time 3.747e-06/0.6543, allocations: 0 / 0.5116 GB, free: 90.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.01243/0.6668, allocations: 5.776 MB / 0.5172 GB, free: 88.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.6669, allocations: 91.58 kB / 0.5173 GB, free: 88.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005/0.6674, allocations: 449.9 kB / 0.5177 GB, free: 88.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.6675, allocations: 62.98 kB / 0.5178 GB, free: 87.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.6677, allocations: 324.3 kB / 0.5181 GB, free: 87.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002877/0.668, allocations: 495.5 kB / 0.5186 GB, free: 87.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.154e-05/0.6681, allocations: 29.94 kB / 0.5186 GB, free: 87.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.6682, allocations: 399.8 kB / 0.519 GB, free: 86.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009496/0.6691, allocations: 0.5367 MB / 0.5195 GB, free: 86.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000981/0.6701, allocations: 0.6768 MB / 0.5202 GB, free: 86.47 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000904/0.671, allocations: 491.6 kB / 0.5206 GB, free: 86.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.671, allocations: 0 / 0.5206 GB, free: 86.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003082/0.6741, allocations: 1.704 MB / 0.5223 GB, free: 85.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.6742, allocations: 3.719 kB / 0.5223 GB, free: 85.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.455e-05/0.6742, allocations: 7.812 kB / 0.5223 GB, free: 85.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001477/0.6757, allocations: 0.8053 MB / 0.5231 GB, free: 85.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008996/0.6766, allocations: 253.9 kB / 0.5234 GB, free: 85.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001706/0.6783, allocations: 1.887 MB / 0.5252 GB, free: 83.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/0.6794, allocations: 201.8 kB / 0.5254 GB, free: 83.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.6795, allocations: 67.36 kB / 0.5255 GB, free: 83.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004646/0.68, allocations: 257.5 kB / 0.5257 GB, free: 83.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000163/0.6802, allocations: 98.83 kB / 0.5258 GB, free: 83.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003189/0.6834, allocations: 1.919 MB / 0.5277 GB, free: 81.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.507e-06/0.6834, allocations: 16 kB / 0.5277 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.6834, allocations: 4 kB / 0.5277 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.6834, allocations: 6.516 kB / 0.5277 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004979/0.6884, allocations: 3.186 MB / 0.5308 GB, free: 78.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.6885, allocations: 0 / 0.5308 GB, free: 78.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.6895, allocations: 268.2 kB / 0.5311 GB, free: 78.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001356/0.6908, allocations: 0.7537 MB / 0.5318 GB, free: 77.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001087/0.691, allocations: 54.61 kB / 0.5318 GB, free: 77.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001783/0.6928, allocations: 1.82 MB / 0.5336 GB, free: 76.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.6928, allocations: 0 / 0.5336 GB, free: 76.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004259/0.697, allocations: 2.487 MB / 0.5361 GB, free: 73.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006898/0.6978, allocations: 304.2 kB / 0.5363 GB, free: 73.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001791/0.698, allocations: 43.94 kB / 0.5364 GB, free: 73.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.699, allocations: 215.3 kB / 0.5366 GB, free: 73.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003701/0.6993, allocations: 230.8 kB / 0.5368 GB, free: 73.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/0.6995, allocations: 66.23 kB / 0.5369 GB, free: 73.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004042/0.6999, allocations: 357.9 kB / 0.5372 GB, free: 72.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6999, allocations: 0 / 0.5372 GB, free: 72.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000912/0.7008, allocations: 319.9 kB / 0.5375 GB, free: 72.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.004479/0.7053, allocations: 3.388 MB / 0.5408 GB, free: 69.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002759/0.7081, allocations: 1.545 MB / 0.5423 GB, free: 68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.7081, allocations: 0 / 0.5423 GB, free: 68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001571/0.7097, allocations: 0.8517 MB / 0.5432 GB, free: 67.24 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009634/0.7106, allocations: 149 kB / 0.5433 GB, free: 67.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01467/0.7253, allocations: 8.58 MB / 0.5517 GB, free: 58.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004458/0.7258, allocations: 1.051 MB / 0.5527 GB, free: 57.35 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006102/0.7264, allocations: 139.4 kB / 0.5528 GB, free: 57.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004747/0.7269, allocations: 347.3 kB / 0.5532 GB, free: 56.87 MB / 378.7 MB Notification: Performance of SimCode: time 6.351e-06/0.7269, allocations: 0 / 0.5532 GB, free: 56.87 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04343/0.7704, allocations: 26.42 MB / 0.579 GB, free: 30.73 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002214/0.7706, allocations: 207.8 kB / 0.5792 GB, free: 30.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.736/3.507, allocations: 0 / 0.5792 GB, free: 30.5 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat