Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001948/0.001948, allocations: 177.9 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.844/1.844, allocations: 205.3 MB / 214.4 MB, free: 1.676 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 90.36 kB / 262.5 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.131e-05/3.125e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.117, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3986/0.5157, allocations: 87.11 MB / 450.3 MB, free: 8.406 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002151/0.516, allocations: 75.14 kB / 450.3 MB, free: 8.367 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06817/0.5842, allocations: 22.99 MB / 473.3 MB, free: 5.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.5842, allocations: 0 / 473.3 MB, free: 5.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.626e-05/0.5843, allocations: 23.94 kB / 473.4 MB, free: 5.047 MB / 346.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.002918/0.5872, allocations: 1.271 MB / 474.6 MB, free: 3.793 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.5872, allocations: 12.03 kB / 474.6 MB, free: 3.781 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005174/0.5878, allocations: 138.6 kB / 474.8 MB, free: 3.645 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008554/0.5886, allocations: 0.5399 MB / 475.3 MB, free: 3.141 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003016/0.5889, allocations: 162.9 kB / 475.5 MB, free: 2.965 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001689/0.5891, allocations: 62.81 kB / 475.5 MB, free: 2.906 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001747/0.5909, allocations: 1.085 MB / 476.6 MB, free: 2.16 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001722/0.5926, allocations: 1.014 MB / 477.6 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.943e-05/0.5927, allocations: 11.89 kB / 477.7 MB, free: 1.406 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.844e-05/0.5928, allocations: 3.984 kB / 477.7 MB, free: 1.402 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.5928, allocations: 24 kB / 477.7 MB, free: 1.379 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006436/0.5992, allocations: 3.542 MB / 481.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001366/0.6007, allocations: 0.8881 MB / 482.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000756/0.6014, allocations: 0.5504 MB / 482.7 MB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001089/0.6016, allocations: 28.28 kB / 482.7 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/0.6016, allocations: 52.55 kB / 482.7 MB, free: 13.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=135): time 3.957e-06/0.6016, allocations: 3.938 kB / 482.7 MB, free: 13.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=147): time 0.007661/0.6093, allocations: 3.52 MB / 486.3 MB, free: 10.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.016e-05/0.6094, allocations: 94.42 kB / 486.4 MB, free: 9.961 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005464/0.6099, allocations: 409.3 kB / 486.8 MB, free: 9.555 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001178/0.6101, allocations: 37.7 kB / 486.8 MB, free: 9.512 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002521/0.6103, allocations: 325.5 kB / 487.1 MB, free: 9.188 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003853/0.6107, allocations: 473.1 kB / 487.6 MB, free: 8.719 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.279e-05/0.6108, allocations: 7.984 kB / 487.6 MB, free: 8.711 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.611, allocations: 390.8 kB / 488 MB, free: 8.32 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008196/0.6118, allocations: 495.9 kB / 488.4 MB, free: 7.836 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009375/0.6128, allocations: 0.6256 MB / 489.1 MB, free: 7.184 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.6138, allocations: 457.8 kB / 489.5 MB, free: 6.742 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.6138, allocations: 0 / 489.5 MB, free: 6.742 MB / 362.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003054/0.6169, allocations: 1.552 MB / 491.1 MB, free: 5.176 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.6169, allocations: 11.94 kB / 491.1 MB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.683e-05/0.617, allocations: 8.172 kB / 491.1 MB, free: 5.156 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001585/0.6186, allocations: 0.7667 MB / 491.9 MB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.6197, allocations: 259.6 kB / 492.1 MB, free: 4.129 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002604/0.6223, allocations: 2.001 MB / 494.1 MB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/0.6238, allocations: 187.9 kB / 494.3 MB, free: 1.891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001587/0.6239, allocations: 55.97 kB / 494.3 MB, free: 1.836 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0005008/0.6244, allocations: 150.5 kB / 494.5 MB, free: 1.684 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002945/0.6274, allocations: 1.376 MB / 495.9 MB, free: 304 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002166/0.6276, allocations: 94.88 kB / 496 MB, free: 208 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003142/0.6308, allocations: 1.664 MB / 497.6 MB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.6308, allocations: 12 kB / 497.6 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.6308, allocations: 0 / 497.6 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.845e-05/0.6309, allocations: 11.91 kB / 497.7 MB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005362/0.6362, allocations: 2.823 MB / 0.4887 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.6363, allocations: 4.125 kB / 0.4887 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001174/0.6374, allocations: 259.7 kB / 0.489 GB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001502/0.639, allocations: 0.7273 MB / 0.4897 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/0.6391, allocations: 35.94 kB / 0.4897 GB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002431/0.6415, allocations: 1.925 MB / 0.4916 GB, free: 8.578 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.6416, allocations: 0 / 0.4916 GB, free: 8.578 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003963/0.6455, allocations: 2.153 MB / 0.4937 GB, free: 6.367 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006975/0.6463, allocations: 295.7 kB / 0.494 GB, free: 6.059 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002655/0.6465, allocations: 24.09 kB / 0.494 GB, free: 6.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/0.6478, allocations: 191.8 kB / 0.4942 GB, free: 5.848 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004507/0.6483, allocations: 236.8 kB / 0.4944 GB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001833/0.6485, allocations: 67.94 kB / 0.4945 GB, free: 5.547 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005038/0.649, allocations: 314.9 kB / 0.4948 GB, free: 5.238 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.649, allocations: 0 / 0.4948 GB, free: 5.238 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001285/0.6503, allocations: 276 kB / 0.4951 GB, free: 4.969 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) * 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.004841/0.6552, allocations: 3.035 MB / 0.498 GB, free: 1.879 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002557/0.6578, allocations: 1.35 MB / 0.4993 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.6578, allocations: 4.062 kB / 0.4994 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.6593, allocations: 0.7298 MB / 0.5001 GB, free: 15.77 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001126/0.6604, allocations: 110.6 kB / 0.5002 GB, free: 15.66 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/0.6709, allocations: 3.029 MB / 0.5031 GB, free: 12.58 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009189/0.6719, allocations: 1.047 MB / 0.5041 GB, free: 11.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009345/0.6728, allocations: 135.1 kB / 0.5043 GB, free: 11.37 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007031/0.6735, allocations: 343.3 kB / 0.5046 GB, free: 11.03 MB / 394.7 MB Notification: Performance of SimCode: time 9.71e-07/0.6736, allocations: 4 kB / 0.5046 GB, free: 11.03 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06288/0.7365, allocations: 25.34 MB / 0.5294 GB, free: 1.648 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001972/0.7367, allocations: 136.5 kB / 0.5295 GB, free: 1.457 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.975/3.712, allocations: 0 / 0.5295 GB, free: 1.457 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_HeatLosses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_HeatLosses.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat