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.001098/0.001098, allocations: 175 kB / 13.63 MB, free: 1.684 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.904/1.904, allocations: 221.3 MB / 235.5 MB, free: 2.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009873/0.0009873, allocations: 87.61 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.006e-05/3.022e-05, allocations: 0 / 343.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1078, allocations: 50.42 MB / 394.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3626/0.4705, allocations: 88.87 MB / 483.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002472/0.4708, allocations: 71.95 kB / 483.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06696/0.5378, allocations: 23.36 MB / 0.4948 GB, free: 6.996 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.5378, allocations: 0 / 0.4948 GB, free: 6.996 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.653e-05/0.5379, allocations: 23.94 kB / 0.4948 GB, free: 6.973 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.003531/0.5414, allocations: 1.263 MB / 0.496 GB, free: 5.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.093e-05/0.5415, allocations: 12.03 kB / 0.496 GB, free: 5.648 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002403/0.5417, allocations: 152 kB / 0.4962 GB, free: 5.492 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005265/0.5423, allocations: 138.6 kB / 0.4963 GB, free: 5.355 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000942/0.5432, allocations: 0.5296 MB / 0.4968 GB, free: 4.781 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003356/0.5436, allocations: 207 kB / 0.497 GB, free: 4.562 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001993/0.5438, allocations: 107.8 kB / 0.4971 GB, free: 4.457 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001954/0.5458, allocations: 1.15 MB / 0.4983 GB, free: 3.289 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.027e-05/0.5458, allocations: 7.906 kB / 0.4983 GB, free: 3.281 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001144/0.5459, allocations: 44 kB / 0.4983 GB, free: 3.238 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.143e-05/0.546, allocations: 27.98 kB / 0.4983 GB, free: 3.211 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001942/0.5479, allocations: 1.136 MB / 0.4994 GB, free: 2.074 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006695/0.5546, allocations: 3.708 MB / 0.5031 GB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/0.5562, allocations: 0.9252 MB / 0.504 GB, free: 13.26 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009048/0.5571, allocations: 0.5945 MB / 0.5046 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001093/0.5572, allocations: 21.3 kB / 0.5046 GB, free: 12.64 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.061e-05/0.5572, allocations: 47.88 kB / 0.5046 GB, free: 12.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=135): time 3.677e-06/0.5573, allocations: 0 / 0.5046 GB, free: 12.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=147): time 0.00706/0.5643, allocations: 3.739 MB / 0.5083 GB, free: 8.777 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.829e-05/0.5644, allocations: 94.36 kB / 0.5084 GB, free: 8.668 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005301/0.5649, allocations: 444.6 kB / 0.5088 GB, free: 8.23 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001271/0.5651, allocations: 69.62 kB / 0.5089 GB, free: 8.156 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002185/0.5653, allocations: 313.6 kB / 0.5091 GB, free: 7.844 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003861/0.5657, allocations: 0.4931 MB / 0.5096 GB, free: 7.344 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.628e-05/0.5658, allocations: 32 kB / 0.5097 GB, free: 7.312 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.566, allocations: 390.7 kB / 0.51 GB, free: 6.922 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008994/0.5669, allocations: 0.5156 MB / 0.5105 GB, free: 6.406 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.5679, allocations: 0.6531 MB / 0.5112 GB, free: 5.73 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007946/0.5687, allocations: 453.8 kB / 0.5116 GB, free: 5.289 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.5687, allocations: 4 kB / 0.5116 GB, free: 5.285 MB / 394.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.002918/0.5716, allocations: 1.65 MB / 0.5132 GB, free: 3.621 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.434e-05/0.5717, allocations: 8 kB / 0.5132 GB, free: 3.613 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.218e-05/0.5717, allocations: 4 kB / 0.5132 GB, free: 3.609 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001663/0.5734, allocations: 0.7746 MB / 0.514 GB, free: 2.828 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/0.5744, allocations: 259.6 kB / 0.5142 GB, free: 2.574 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002194/0.5766, allocations: 1.872 MB / 0.5161 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/0.5779, allocations: 207.9 kB / 0.5163 GB, free: 456 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/0.5781, allocations: 55.97 kB / 0.5163 GB, free: 400 kB / 394.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 () * 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.0003226/0.5784, allocations: 191.8 kB / 0.5165 GB, free: 200 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001858/0.5786, allocations: 90.97 kB / 0.5166 GB, free: 108 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003182/0.5818, allocations: 1.777 MB / 0.5183 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.5818, allocations: 12 kB / 0.5183 GB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.5818, allocations: 8 kB / 0.5183 GB, free: 14.28 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.5818, allocations: 3.984 kB / 0.5183 GB, free: 14.28 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005231/0.5871, allocations: 3.04 MB / 0.5213 GB, free: 11.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.5871, allocations: 0 / 0.5213 GB, free: 11.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.5882, allocations: 263.8 kB / 0.5216 GB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00151/0.5898, allocations: 0.7352 MB / 0.5223 GB, free: 10.15 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001152/0.5899, allocations: 55.94 kB / 0.5223 GB, free: 10.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002108/0.592, allocations: 1.796 MB / 0.5241 GB, free: 8.246 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.592, allocations: 0 / 0.5241 GB, free: 8.246 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003826/0.5959, allocations: 2.262 MB / 0.5263 GB, free: 5.922 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005966/0.5965, allocations: 299.8 kB / 0.5266 GB, free: 5.609 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001901/0.5967, allocations: 43.95 kB / 0.5266 GB, free: 5.566 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.5978, allocations: 215.8 kB / 0.5268 GB, free: 5.355 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004816/0.5983, allocations: 228.8 kB / 0.5271 GB, free: 5.133 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001654/0.5985, allocations: 59.94 kB / 0.5271 GB, free: 5.074 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005151/0.599, allocations: 357.5 kB / 0.5275 GB, free: 4.727 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.599, allocations: 0 / 0.5275 GB, free: 4.727 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001141/0.6002, allocations: 316 kB / 0.5278 GB, free: 4.418 MB / 410.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) * 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.004413/0.6046, allocations: 3.156 MB / 0.5308 GB, free: 1.207 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00262/0.6072, allocations: 1.421 MB / 0.5322 GB, free: 15.76 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.6073, allocations: 0 / 0.5322 GB, free: 15.76 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.6087, allocations: 0.7781 MB / 0.533 GB, free: 14.98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009584/0.6097, allocations: 131.6 kB / 0.5331 GB, free: 14.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00887/0.6186, allocations: 3.151 MB / 0.5362 GB, free: 11.65 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006775/0.6193, allocations: 1.051 MB / 0.5372 GB, free: 10.57 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006618/0.62, allocations: 135.2 kB / 0.5373 GB, free: 10.44 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005676/0.6206, allocations: 339.3 kB / 0.5377 GB, free: 10.11 MB / 426.7 MB Notification: Performance of SimCode: time 1.452e-06/0.6206, allocations: 0 / 0.5377 GB, free: 10.11 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2744/0.895, allocations: 26.46 MB / 0.5635 GB, free: 124.1 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/0.8952, allocations: 186.4 kB / 0.5637 GB, free: 123.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.782/3.677, allocations: 0 / 0.5637 GB, free: 123.9 MB / 426.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