Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.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.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_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.002348/0.002348, allocations: 179.4 kB / 8.364 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.275/2.275, 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.00117/0.00117, allocations: 92.17 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.198e-05/2.208e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.3487, allocations: 47.56 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1663/0.5151, allocations: 82.77 MB / 445.2 MB, free: 3.441 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004174/0.5156, allocations: 67.95 kB / 445.3 MB, free: 3.375 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1203/0.636, allocations: 14.8 MB / 460.1 MB, free: 4.59 MB / 347.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.6361, allocations: 0 / 460.1 MB, free: 4.59 MB / 347.1 MB Notification: Performance of Transformations before backend: time 6.553e-05/0.6361, allocations: 12 kB / 460.1 MB, free: 4.578 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.007168/0.6433, allocations: 1.079 MB / 461.1 MB, free: 3.453 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.659e-05/0.6434, allocations: 8.031 kB / 461.2 MB, free: 3.445 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007229/0.6442, allocations: 91.02 kB / 461.2 MB, free: 3.355 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001667/0.6459, allocations: 419.1 kB / 461.7 MB, free: 2.906 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.646, allocations: 24 kB / 461.7 MB, free: 2.883 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003446/0.6464, allocations: 39.91 kB / 461.7 MB, free: 2.844 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003633/0.6501, allocations: 0.6833 MB / 462.4 MB, free: 2.16 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003081/0.6532, allocations: 0.6203 MB / 463 MB, free: 1.535 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-05/0.6533, allocations: 3.984 kB / 463 MB, free: 1.531 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001703/0.6535, allocations: 0 / 463 MB, free: 1.531 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.585e-05/0.6536, allocations: 23.95 kB / 463 MB, free: 1.508 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01254/0.6662, allocations: 2.329 MB / 465.4 MB, free: 15.06 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002475/0.6687, allocations: 0.588 MB / 466 MB, free: 14.46 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001652/0.6704, allocations: 380.3 kB / 466.3 MB, free: 14.09 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001968/0.6707, allocations: 22.81 kB / 466.4 MB, free: 14.07 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002034/0.6727, allocations: 476.4 kB / 466.8 MB, free: 13.59 MB / 363.1 MB Notification: Performance of pre-optimization done (n=89): time 7.534e-06/0.6728, allocations: 0 / 466.8 MB, free: 13.59 MB / 363.1 MB Notification: Performance of matching and sorting (n=109): time 0.01507/0.6879, allocations: 2.618 MB / 469.4 MB, free: 10.9 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.9e-05/0.688, allocations: 64.72 kB / 469.5 MB, free: 10.82 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007319/0.6887, allocations: 281.3 kB / 469.8 MB, free: 10.54 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003763/0.6891, allocations: 41.69 kB / 469.8 MB, free: 10.5 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003813/0.6896, allocations: 307.5 kB / 470.1 MB, free: 10.19 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008383/0.6904, allocations: 358.7 kB / 470.5 MB, free: 9.836 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/0.6906, allocations: 0 / 470.5 MB, free: 9.836 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0002618/0.6909, allocations: 350.8 kB / 470.8 MB, free: 9.484 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001613/0.6925, allocations: 338.6 kB / 471.1 MB, free: 9.156 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001805/0.6943, allocations: 428.9 kB / 471.6 MB, free: 8.719 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001739/0.6961, allocations: 290.3 kB / 471.8 MB, free: 8.441 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-05/0.6962, allocations: 0 / 471.8 MB, free: 8.441 MB / 363.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.006724/0.7029, allocations: 1.085 MB / 472.9 MB, free: 7.34 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.225e-05/0.703, allocations: 8 kB / 472.9 MB, free: 7.332 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.005e-05/0.7031, allocations: 0 / 472.9 MB, free: 7.332 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002652/0.7058, allocations: 0.5426 MB / 473.5 MB, free: 6.781 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002615/0.7084, allocations: 195.8 kB / 473.7 MB, free: 6.59 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009811/0.7183, allocations: 3.241 MB / 476.9 MB, free: 3.18 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003744/0.7221, allocations: 215.9 kB / 477.1 MB, free: 2.969 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003249/0.7225, allocations: 39.98 kB / 477.2 MB, free: 2.93 MB / 363.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: massWithStopAndFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006349/0.7231, allocations: 142.4 kB / 477.3 MB, free: 2.785 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005445/0.7286, allocations: 0.949 MB / 478.2 MB, free: 1.816 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004974/0.7291, allocations: 67.25 kB / 478.3 MB, free: 1.75 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006164/0.7353, allocations: 1.122 MB / 479.4 MB, free: 0.6055 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.841e-05/0.7354, allocations: 8 kB / 479.4 MB, free: 0.5977 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.7355, allocations: 0 / 479.4 MB, free: 0.5977 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.914e-05/0.7355, allocations: 3.984 kB / 479.4 MB, free: 0.5938 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01093/0.7465, allocations: 2.213 MB / 481.7 MB, free: 14.29 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-05/0.7465, allocations: 4 kB / 481.7 MB, free: 14.28 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002524/0.7491, allocations: 183.7 kB / 481.8 MB, free: 14.1 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002442/0.7516, allocations: 0.506 MB / 482.4 MB, free: 13.59 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003093/0.7519, allocations: 23.95 kB / 482.4 MB, free: 13.56 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008546/0.7605, allocations: 3.039 MB / 485.4 MB, free: 10.36 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-05/0.7606, allocations: 0 / 485.4 MB, free: 10.36 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008382/0.769, allocations: 1.662 MB / 487.1 MB, free: 8.598 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/0.7703, allocations: 228.1 kB / 487.3 MB, free: 8.355 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004871/0.7708, allocations: 15.98 kB / 487.3 MB, free: 8.34 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004171/0.775, allocations: 235.8 kB / 487.5 MB, free: 8.109 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002919/0.778, allocations: 432.4 kB / 488 MB, free: 7.688 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003959/0.7784, allocations: 43.97 kB / 488 MB, free: 7.645 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0005998/0.7791, allocations: 223 kB / 488.2 MB, free: 7.426 MB / 379.1 MB Notification: Performance of sort global known variables: time 9.12e-07/0.7791, allocations: 0 / 488.2 MB, free: 7.426 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.00207/0.7812, allocations: 216 kB / 488.4 MB, free: 7.215 MB / 379.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.009272/0.7905, allocations: 2.796 MB / 491.2 MB, free: 4.328 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.005029/0.7956, allocations: 1.023 MB / 492.3 MB, free: 3.285 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 2.147e-05/0.7957, allocations: 0 / 492.3 MB, free: 3.285 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003006/0.7987, allocations: 0.6366 MB / 492.9 MB, free: 2.641 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001802/0.8006, allocations: 97.03 kB / 493 MB, free: 2.551 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01188/0.8125, allocations: 1.868 MB / 494.9 MB, free: 0.6094 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001087/0.8137, allocations: 0.9556 MB / 495.8 MB, free: 15.62 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001072/0.8148, allocations: 248.8 kB / 496.1 MB, free: 15.38 MB / 395.1 MB Notification: Performance of SimCode: time 1.262e-06/0.8148, allocations: 0 / 496.1 MB, free: 15.38 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.68/4.495, allocations: 19.44 MB / 0.5034 GB, free: 120.2 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat