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.001672/0.001673, allocations: 175.7 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.605/1.605, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007581/0.0007583, allocations: 85.48 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003511, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2786, allocations: 47.58 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.003603/0.2823, allocations: 3.72 MB / 378.8 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002503/0.2848, allocations: 1.298 MB / 380.1 MB, free: 41.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003263/0.2852, allocations: 13.75 kB / 380.1 MB, free: 41.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002591/0.2855, allocations: 84.06 kB / 380.2 MB, free: 41.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003258/0.2858, allocations: 190.7 kB / 380.4 MB, free: 41.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008879/0.2867, allocations: 335.8 kB / 380.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008563/0.2876, allocations: 0.9956 MB / 381.7 MB, free: 40.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003387/0.2879, allocations: 227.9 kB / 381.9 MB, free: 40.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005382/0.2884, allocations: 414.2 kB / 382.3 MB, free: 39.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004398/0.2889, allocations: 462.1 kB / 382.8 MB, free: 39.67 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.289, allocations: 46.31 kB / 382.8 MB, free: 39.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002496/0.2893, allocations: 107.2 kB / 382.9 MB, free: 39.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.2894, allocations: 168.8 kB / 383.1 MB, free: 39.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003328/0.2898, allocations: 401.7 kB / 383.5 MB, free: 39.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005668/0.2903, allocations: 0.7402 MB / 384.2 MB, free: 38.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.2904, allocations: 0 / 384.2 MB, free: 38.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2904, allocations: 0 / 384.2 MB, free: 38.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.2904, allocations: 1.156 kB / 384.2 MB, free: 38.67 MB / 298.7 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.002831/0.2932, allocations: 1.219 MB / 385.5 MB, free: 37.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/0.2933, allocations: 9.406 kB / 385.5 MB, free: 37.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00029/0.2936, allocations: 95.88 kB / 385.6 MB, free: 37.78 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005386/0.2941, allocations: 443.7 kB / 386 MB, free: 37.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.883e-05/0.2942, allocations: 50.84 kB / 386 MB, free: 37.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.2943, allocations: 68.31 kB / 386.1 MB, free: 37.33 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.296, allocations: 0.8197 MB / 386.9 MB, free: 36.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.623e-05/0.296, allocations: 7.906 kB / 386.9 MB, free: 36.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.303e-05/0.2961, allocations: 28 kB / 387 MB, free: 36.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.2961, allocations: 16 kB / 387 MB, free: 36.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001717/0.2978, allocations: 0.8978 MB / 387.9 MB, free: 35.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003592/0.3014, allocations: 2.452 MB / 390.3 MB, free: 33.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.3027, allocations: 0.7332 MB / 391.1 MB, free: 32.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007874/0.3035, allocations: 484.3 kB / 391.5 MB, free: 31.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.333e-05/0.3036, allocations: 12.98 kB / 391.5 MB, free: 31.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00104/0.3046, allocations: 0.5711 MB / 392.1 MB, free: 31.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 3.046e-06/0.3047, allocations: 0 / 392.1 MB, free: 31.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.009549/0.3142, allocations: 4.478 MB / 396.6 MB, free: 26.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.311e-05/0.3143, allocations: 64.41 kB / 396.7 MB, free: 26.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003534/0.3146, allocations: 382 kB / 397 MB, free: 26.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.775e-05/0.3147, allocations: 57.69 kB / 397.1 MB, free: 26.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.3149, allocations: 272.9 kB / 397.4 MB, free: 26 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/0.3151, allocations: 362.9 kB / 397.7 MB, free: 25.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.221e-05/0.3151, allocations: 20 kB / 397.7 MB, free: 25.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.804e-05/0.3152, allocations: 374.8 kB / 398.1 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008306/0.3161, allocations: 458.3 kB / 398.5 MB, free: 24.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008819/0.317, allocations: 0.5306 MB / 399.1 MB, free: 24.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.3184, allocations: 0.8103 MB / 399.9 MB, free: 23.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3184, allocations: 0 / 399.9 MB, free: 23.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002575/0.321, allocations: 1.369 MB / 401.3 MB, free: 22.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.321, allocations: 10.03 kB / 401.3 MB, free: 22.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.321, allocations: 0 / 401.3 MB, free: 22.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000969/0.322, allocations: 0.6504 MB / 401.9 MB, free: 21.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007082/0.3227, allocations: 207.7 kB / 402.1 MB, free: 21.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00317/0.3259, allocations: 3.302 MB / 405.4 MB, free: 17.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/0.3271, allocations: 243.9 kB / 405.7 MB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.562e-05/0.3272, allocations: 35.98 kB / 405.7 MB, free: 17.4 MB / 298.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * 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 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003553/0.3275, allocations: 217.5 kB / 405.9 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.3277, allocations: 75.14 kB / 406 MB, free: 17.11 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001906/0.3279, allocations: 114.9 kB / 406.1 MB, free: 16.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.822e-06/0.3279, allocations: 12 kB / 406.1 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.3279, allocations: 128 / 406.1 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.3279, allocations: 3.984 kB / 406.1 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003833/0.3317, allocations: 2.561 MB / 408.7 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.972e-06/0.3318, allocations: 4 kB / 408.7 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007162/0.3325, allocations: 184 kB / 408.8 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008646/0.3334, allocations: 0.6192 MB / 409.5 MB, free: 13.49 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-05/0.3334, allocations: 31.97 kB / 409.5 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002638/0.3361, allocations: 3.132 MB / 412.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3361, allocations: 0 / 412.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003263/0.3394, allocations: 1.895 MB / 414.5 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003558/0.3397, allocations: 224.2 kB / 414.7 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.3399, allocations: 39.92 kB / 414.8 MB, free: 7.922 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.3411, allocations: 271.7 kB / 415 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007998/0.3419, allocations: 432.1 kB / 415.5 MB, free: 7.234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-05/0.342, allocations: 43.95 kB / 415.5 MB, free: 7.191 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002395/0.3422, allocations: 259.2 kB / 415.8 MB, free: 6.938 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3422, allocations: 4 kB / 415.8 MB, free: 6.934 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007606/0.343, allocations: 252 kB / 416 MB, free: 6.688 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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.0002858/0.3433, allocations: 172.7 kB / 416.2 MB, free: 6.512 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002118/0.3454, allocations: 1.204 MB / 417.4 MB, free: 5.297 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3454, allocations: 4 kB / 417.4 MB, free: 5.293 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.3467, allocations: 0.7468 MB / 418.1 MB, free: 4.531 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008836/0.3476, allocations: 113.4 kB / 418.3 MB, free: 4.422 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003332/0.3509, allocations: 2.417 MB / 420.7 MB, free: 1.953 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.3512, allocations: 0.9322 MB / 421.6 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002171/0.3515, allocations: 63.42 kB / 421.7 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of SimCode: time 6.81e-07/0.3515, allocations: 0 / 421.7 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of Templates: time 0.01917/0.3706, allocations: 17.38 MB / 439 MB, free: 15.51 MB / 330.7 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/jenkins/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