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: translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002188/0.002187, 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.019/2.019, 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.001109/0.001108, allocations: 98.47 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.095e-05/3.043e-05, allocations: 4 kB / 314.8 MB, free: 9.168 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3423, allocations: 47.57 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1538/0.4962, allocations: 82.77 MB / 445.1 MB, free: 3.539 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/0.4965, allocations: 67.97 kB / 445.2 MB, free: 3.473 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07435/0.5709, allocations: 14.78 MB / 460 MB, free: 4.699 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.571, allocations: 0.9375 kB / 460 MB, free: 4.699 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.991e-05/0.571, allocations: 16 kB / 460 MB, free: 4.684 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.004541/0.5756, allocations: 1.072 MB / 461 MB, free: 3.566 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.5756, allocations: 12.03 kB / 461.1 MB, free: 3.555 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004691/0.5761, allocations: 95 kB / 461.1 MB, free: 3.461 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009609/0.5771, allocations: 411.1 kB / 461.5 MB, free: 3.02 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.191e-05/0.5772, allocations: 20 kB / 461.6 MB, free: 3 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002038/0.5774, allocations: 55.88 kB / 461.6 MB, free: 2.945 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002203/0.5796, allocations: 0.6755 MB / 462.3 MB, free: 2.27 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001926/0.5816, allocations: 0.6242 MB / 462.9 MB, free: 1.641 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.503e-05/0.5816, allocations: 6.344 kB / 462.9 MB, free: 1.637 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.5818, allocations: 4 kB / 462.9 MB, free: 1.633 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.589e-05/0.5818, allocations: 19.95 kB / 462.9 MB, free: 1.613 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008017/0.5898, allocations: 2.325 MB / 465.3 MB, free: 15.17 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.5914, allocations: 0.588 MB / 465.9 MB, free: 14.57 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00097/0.5924, allocations: 379.8 kB / 466.2 MB, free: 14.2 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001405/0.5926, allocations: 20.77 kB / 466.3 MB, free: 14.18 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001267/0.5939, allocations: 476.4 kB / 466.7 MB, free: 13.7 MB / 363.1 MB Notification: Performance of pre-optimization done (n=89): time 4.288e-06/0.5939, allocations: 0 / 466.7 MB, free: 13.7 MB / 363.1 MB Notification: Performance of matching and sorting (n=109): time 0.009514/0.6034, allocations: 2.63 MB / 469.3 MB, free: 10.99 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/0.6035, allocations: 60.72 kB / 469.4 MB, free: 10.92 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005117/0.604, allocations: 281.3 kB / 469.7 MB, free: 10.64 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002245/0.6043, allocations: 41.69 kB / 469.7 MB, free: 10.59 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002825/0.6046, allocations: 307.5 kB / 470 MB, free: 10.29 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004913/0.6051, allocations: 354.8 kB / 470.4 MB, free: 9.934 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.963e-05/0.6052, allocations: 3.984 kB / 470.4 MB, free: 9.93 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.6054, allocations: 350.8 kB / 470.7 MB, free: 9.578 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009812/0.6064, allocations: 334.6 kB / 471 MB, free: 9.254 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001108/0.6075, allocations: 432.8 kB / 471.5 MB, free: 8.812 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.6085, allocations: 290.3 kB / 471.7 MB, free: 8.535 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.6086, allocations: 4 kB / 471.8 MB, free: 8.531 MB / 363.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004057/0.6126, allocations: 1.079 MB / 472.8 MB, free: 7.438 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.934e-05/0.6127, allocations: 7.938 kB / 472.8 MB, free: 7.43 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.127e-05/0.6128, allocations: 7.984 kB / 472.8 MB, free: 7.422 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001715/0.6145, allocations: 0.5295 MB / 473.4 MB, free: 6.883 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001637/0.6161, allocations: 207.7 kB / 473.6 MB, free: 6.68 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006551/0.6227, allocations: 3.236 MB / 476.8 MB, free: 3.273 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002391/0.6252, allocations: 219.9 kB / 477 MB, free: 3.059 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001907/0.6254, allocations: 39.98 kB / 477.1 MB, free: 3.02 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.000475/0.6259, allocations: 139.7 kB / 477.2 MB, free: 2.883 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002231/0.6261, allocations: 71.16 kB / 477.3 MB, free: 2.812 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004037/0.6302, allocations: 1.114 MB / 478.4 MB, free: 1.668 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.966e-05/0.6303, allocations: 15.95 kB / 478.4 MB, free: 1.652 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.6303, allocations: 0 / 478.4 MB, free: 1.652 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.307e-05/0.6303, allocations: 3.984 kB / 478.4 MB, free: 1.648 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006901/0.6372, allocations: 2.202 MB / 480.6 MB, free: 15.36 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.6373, allocations: 3.938 kB / 480.6 MB, free: 15.35 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001652/0.639, allocations: 188 kB / 480.8 MB, free: 15.17 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001603/0.6406, allocations: 0.506 MB / 481.3 MB, free: 14.65 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001999/0.6408, allocations: 23.95 kB / 481.3 MB, free: 14.63 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005606/0.6464, allocations: 3.044 MB / 484.4 MB, free: 11.42 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.181e-05/0.6465, allocations: 3.953 kB / 484.4 MB, free: 11.42 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005117/0.6516, allocations: 1.651 MB / 486 MB, free: 9.668 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006815/0.6524, allocations: 228.2 kB / 486.2 MB, free: 9.426 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002098/0.6526, allocations: 15.98 kB / 486.3 MB, free: 9.41 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002408/0.655, allocations: 237.8 kB / 486.5 MB, free: 9.18 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00175/0.6568, allocations: 436.3 kB / 486.9 MB, free: 8.754 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001807/0.657, allocations: 47.97 kB / 487 MB, free: 8.707 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0003863/0.6574, allocations: 223 kB / 487.2 MB, free: 8.488 MB / 379.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.6574, allocations: 0 / 487.2 MB, free: 8.488 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001286/0.6587, allocations: 212 kB / 487.4 MB, free: 8.281 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.0004226/0.6592, allocations: 148.8 kB / 487.5 MB, free: 8.125 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.002887/0.6621, allocations: 1.034 MB / 488.6 MB, free: 7.074 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/0.6621, allocations: 0 / 488.6 MB, free: 7.074 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002002/0.6641, allocations: 0.639 MB / 489.2 MB, free: 6.426 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/0.6653, allocations: 95.05 kB / 489.3 MB, free: 6.34 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006875/0.6722, allocations: 1.746 MB / 491.1 MB, free: 4.535 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000749/0.673, allocations: 0.9478 MB / 492 MB, free: 3.555 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004515/0.6735, allocations: 59.42 kB / 492.1 MB, free: 3.496 MB / 379.1 MB Notification: Performance of SimCode: time 4.198e-06/0.6735, allocations: 0 / 492.1 MB, free: 3.496 MB / 379.1 MB Notification: Performance of Templates: time 0.03464/0.7082, allocations: 16.58 MB / 0.4967 GB, free: 2.91 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches