Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_cpp_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.002345/0.002345, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.102/2.102, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001288/0.001287, allocations: 92.42 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.124e-05/2.135e-05, allocations: 0 / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.36, allocations: 47.55 MB / 362.4 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1415/0.5016, allocations: 86.87 MB / 449.3 MB, free: 15.42 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/0.5019, allocations: 73.64 kB / 449.4 MB, free: 15.35 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1117/0.6136, allocations: 23 MB / 472.4 MB, free: 8.355 MB / 363.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.6137, allocations: 0 / 472.4 MB, free: 8.355 MB / 363.1 MB Notification: Performance of Transformations before backend: time 6e-05/0.6137, allocations: 20 kB / 472.4 MB, free: 8.336 MB / 363.1 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.005254/0.619, allocations: 1.269 MB / 473.7 MB, free: 7.023 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/0.6191, allocations: 12.03 kB / 473.7 MB, free: 7.012 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001154/0.6203, allocations: 138.6 kB / 473.8 MB, free: 6.875 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001667/0.622, allocations: 0.5373 MB / 474.3 MB, free: 6.293 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005277/0.6225, allocations: 175 kB / 474.5 MB, free: 6.102 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003455/0.6229, allocations: 60 kB / 474.6 MB, free: 6.043 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003647/0.6265, allocations: 1.089 MB / 475.7 MB, free: 4.953 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003206/0.6298, allocations: 1.017 MB / 476.7 MB, free: 3.922 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.788e-05/0.6299, allocations: 15.84 kB / 476.7 MB, free: 3.906 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001516/0.6301, allocations: 0 / 476.7 MB, free: 3.906 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.274e-05/0.6301, allocations: 24 kB / 476.7 MB, free: 3.883 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01214/0.6423, allocations: 3.534 MB / 480.2 MB, free: 212 kB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002505/0.6449, allocations: 0.894 MB / 481.1 MB, free: 15.29 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001517/0.6464, allocations: 0.5482 MB / 481.7 MB, free: 14.75 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001725/0.6466, allocations: 25.2 kB / 481.7 MB, free: 14.73 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.573e-05/0.6467, allocations: 55.81 kB / 481.8 MB, free: 14.66 MB / 379.1 MB Notification: Performance of pre-optimization done (n=135): time 3.747e-06/0.6467, allocations: 0 / 481.8 MB, free: 14.66 MB / 379.1 MB Notification: Performance of matching and sorting (n=147): time 0.01319/0.6599, allocations: 3.519 MB / 485.3 MB, free: 11.07 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.431e-05/0.66, allocations: 90.42 kB / 485.4 MB, free: 10.97 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008024/0.6608, allocations: 409.3 kB / 485.8 MB, free: 10.56 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003721/0.6612, allocations: 38.45 kB / 485.8 MB, free: 10.52 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003207/0.6616, allocations: 360 kB / 486.2 MB, free: 10.16 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000648/0.6622, allocations: 485 kB / 486.6 MB, free: 9.684 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.6624, allocations: 4 kB / 486.6 MB, free: 9.68 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.6626, allocations: 366.8 kB / 487 MB, free: 9.312 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001481/0.6641, allocations: 495.9 kB / 487.5 MB, free: 8.828 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001592/0.6657, allocations: 0.614 MB / 488.1 MB, free: 8.188 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001715/0.6674, allocations: 457.8 kB / 488.5 MB, free: 7.746 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.6674, allocations: 5.719 kB / 488.5 MB, free: 7.742 MB / 379.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.005303/0.6728, allocations: 1.533 MB / 490.1 MB, free: 6.195 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.544e-05/0.6728, allocations: 9.25 kB / 490.1 MB, free: 6.188 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.755e-05/0.6729, allocations: 4 kB / 490.1 MB, free: 6.184 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002791/0.6757, allocations: 0.7629 MB / 490.9 MB, free: 5.414 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002169/0.6779, allocations: 263.5 kB / 491.1 MB, free: 5.156 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004106/0.682, allocations: 1.997 MB / 493.1 MB, free: 3.105 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002782/0.6849, allocations: 179.9 kB / 493.3 MB, free: 2.93 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005692/0.6855, allocations: 63.97 kB / 493.4 MB, free: 2.867 MB / 379.1 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.0008785/0.6864, allocations: 159.9 kB / 493.5 MB, free: 2.711 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009619/0.696, allocations: 1.376 MB / 494.9 MB, free: 1.324 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000876/0.697, allocations: 90.88 kB / 495 MB, free: 1.234 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006109/0.7031, allocations: 1.66 MB / 496.6 MB, free: 15.54 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.528e-05/0.7032, allocations: 15.98 kB / 496.6 MB, free: 15.52 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.7032, allocations: 4 kB / 496.7 MB, free: 15.52 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.37e-05/0.7032, allocations: 3.984 kB / 496.7 MB, free: 15.52 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00935/0.7126, allocations: 2.828 MB / 499.5 MB, free: 12.62 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/0.7127, allocations: 4.656 kB / 499.5 MB, free: 12.61 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002417/0.7151, allocations: 259.8 kB / 499.7 MB, free: 12.36 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002785/0.7179, allocations: 0.7312 MB / 0.4887 GB, free: 11.62 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003151/0.7183, allocations: 31.94 kB / 0.4888 GB, free: 11.59 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003887/0.7222, allocations: 1.92 MB / 0.4906 GB, free: 9.613 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/0.7222, allocations: 0 / 0.4906 GB, free: 9.613 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006623/0.7288, allocations: 2.153 MB / 0.4928 GB, free: 7.406 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.7299, allocations: 307.5 kB / 0.493 GB, free: 7.09 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000312/0.7303, allocations: 20 kB / 0.4931 GB, free: 7.07 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002268/0.7326, allocations: 191.8 kB / 0.4932 GB, free: 6.883 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007721/0.7334, allocations: 228.8 kB / 0.4935 GB, free: 6.656 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002149/0.7336, allocations: 59.94 kB / 0.4935 GB, free: 6.598 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0006072/0.7342, allocations: 322.9 kB / 0.4938 GB, free: 6.281 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7342, allocations: 0 / 0.4938 GB, free: 6.281 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001482/0.7357, allocations: 272 kB / 0.4941 GB, free: 6.016 MB / 395.1 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.00752/0.7433, allocations: 3.041 MB / 0.4971 GB, free: 2.922 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.004204/0.7475, allocations: 1.346 MB / 0.4984 GB, free: 1.555 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 9.838e-06/0.7476, allocations: 0 / 0.4984 GB, free: 1.555 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002564/0.7502, allocations: 0.7342 MB / 0.4991 GB, free: 0.8203 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001545/0.7518, allocations: 99.52 kB / 0.4992 GB, free: 0.7227 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.272/1.024, allocations: 3.073 MB / 0.5022 GB, free: 117.8 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007874/1.025, allocations: 1.049 MB / 0.5032 GB, free: 117.1 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/1.026, allocations: 348.7 kB / 0.5035 GB, free: 117.1 MB / 395.1 MB Notification: Performance of SimCode: time 1.463e-06/1.026, allocations: 0 / 0.5035 GB, free: 117.1 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.492/4.517, allocations: 22.57 MB / 0.5256 GB, free: 112.2 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat