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.001258/0.001258, allocations: 179.5 kB / 16.41 MB, free: 5.703 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.327/1.327, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0009587/0.0009586, allocations: 96.02 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003878/0.000388, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2465, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.003274/0.2498, allocations: 3.729 MB / 378.3 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002087/0.2519, allocations: 1.282 MB / 379.6 MB, free: 41.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002704/0.2522, allocations: 13.28 kB / 379.6 MB, free: 41.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002436/0.2525, allocations: 84.62 kB / 379.7 MB, free: 41.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003115/0.2528, allocations: 191.1 kB / 379.8 MB, free: 41.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007828/0.2536, allocations: 337.8 kB / 380.2 MB, free: 40.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007124/0.2543, allocations: 0.9927 MB / 381.2 MB, free: 40.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00028/0.2546, allocations: 200.5 kB / 381.4 MB, free: 40.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004649/0.2551, allocations: 418.2 kB / 381.8 MB, free: 39.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004426/0.2555, allocations: 466 kB / 382.2 MB, free: 39.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001152/0.2557, allocations: 47.06 kB / 382.3 MB, free: 39.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002487/0.2559, allocations: 94.8 kB / 382.4 MB, free: 39.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001371/0.2561, allocations: 168.7 kB / 382.5 MB, free: 39.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.2562, allocations: 162.6 kB / 382.7 MB, free: 39.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005475/0.2568, allocations: 0.7366 MB / 383.4 MB, free: 38.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2568, allocations: 3.938 kB / 383.4 MB, free: 38.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2568, allocations: 0 / 383.4 MB, free: 38.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.2568, allocations: 0 / 383.4 MB, free: 38.88 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.002721/0.2595, allocations: 1.226 MB / 384.6 MB, free: 38.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2596, allocations: 8.531 kB / 384.7 MB, free: 38.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002028/0.2598, allocations: 88 kB / 384.7 MB, free: 37.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004531/0.2602, allocations: 426.7 kB / 385.2 MB, free: 37.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.412e-05/0.2603, allocations: 53.47 kB / 385.2 MB, free: 37.58 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.2604, allocations: 76.64 kB / 385.3 MB, free: 37.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001509/0.2619, allocations: 0.8139 MB / 386.1 MB, free: 37.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.526e-05/0.262, allocations: 2.281 kB / 386.1 MB, free: 37.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.117e-05/0.2621, allocations: 29.61 kB / 386.1 MB, free: 37.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.2621, allocations: 16.25 kB / 386.1 MB, free: 37.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001677/0.2638, allocations: 0.9035 MB / 387.1 MB, free: 36.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003375/0.2671, allocations: 2.457 MB / 389.5 MB, free: 33.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/0.2684, allocations: 0.7294 MB / 390.2 MB, free: 32.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008037/0.2692, allocations: 484.3 kB / 390.7 MB, free: 32.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.256e-05/0.2693, allocations: 16.92 kB / 390.7 MB, free: 32.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009636/0.2702, allocations: 0.5633 MB / 391.3 MB, free: 31.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 2.404e-06/0.2703, allocations: 4 kB / 391.3 MB, free: 31.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.009332/0.2796, allocations: 4.47 MB / 395.8 MB, free: 27.22 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.2796, allocations: 68.41 kB / 395.8 MB, free: 27.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00031/0.28, allocations: 385.9 kB / 396.2 MB, free: 26.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.641e-05/0.28, allocations: 57.69 kB / 396.3 MB, free: 26.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.2802, allocations: 269 kB / 396.5 MB, free: 26.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.2804, allocations: 362.9 kB / 396.9 MB, free: 26.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.303e-05/0.2804, allocations: 20 kB / 396.9 MB, free: 26.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.373e-05/0.2805, allocations: 370.8 kB / 397.3 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008327/0.2813, allocations: 450.4 kB / 397.7 MB, free: 25.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008593/0.2822, allocations: 0.5461 MB / 398.2 MB, free: 24.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007508/0.283, allocations: 398.3 kB / 398.6 MB, free: 24.28 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.283, allocations: 0 / 398.6 MB, free: 24.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002633/0.2856, allocations: 1.366 MB / 400 MB, free: 22.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.2856, allocations: 4 kB / 400 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.2857, allocations: 4 kB / 400 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009162/0.2866, allocations: 0.6543 MB / 400.7 MB, free: 22.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007429/0.2873, allocations: 211.6 kB / 400.9 MB, free: 22.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003054/0.2904, allocations: 3.302 MB / 404.2 MB, free: 18.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.2916, allocations: 239.8 kB / 404.4 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.439e-05/0.2917, allocations: 32 kB / 404.4 MB, free: 18.27 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.0003384/0.292, allocations: 232.9 kB / 404.7 MB, free: 18.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.2921, allocations: 71.16 kB / 404.7 MB, free: 17.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000161/0.2923, allocations: 103 kB / 404.8 MB, free: 17.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.2923, allocations: 11.94 kB / 404.8 MB, free: 17.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.2923, allocations: 128 / 404.8 MB, free: 17.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.2923, allocations: 7.984 kB / 404.9 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003879/0.2962, allocations: 2.558 MB / 407.4 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2962, allocations: 4.219 kB / 407.4 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007435/0.297, allocations: 183.8 kB / 407.6 MB, free: 14.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008136/0.2978, allocations: 0.6152 MB / 408.2 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.725e-05/0.2979, allocations: 39.95 kB / 408.3 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002596/0.3005, allocations: 3.128 MB / 411.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3005, allocations: 4.031 kB / 411.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003244/0.3038, allocations: 1.884 MB / 413.3 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003028/0.3041, allocations: 236.1 kB / 413.5 MB, free: 8.828 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.3042, allocations: 35.95 kB / 413.5 MB, free: 8.793 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00128/0.3055, allocations: 271.7 kB / 413.8 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007293/0.3062, allocations: 428.1 kB / 414.2 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.091e-05/0.3063, allocations: 43.97 kB / 414.3 MB, free: 8.062 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002089/0.3065, allocations: 267.1 kB / 414.5 MB, free: 7.805 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3065, allocations: 4 kB / 414.5 MB, free: 7.801 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006839/0.3072, allocations: 248 kB / 414.8 MB, free: 7.559 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.0002468/0.3075, allocations: 161.2 kB / 414.9 MB, free: 7.391 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002134/0.3096, allocations: 1.212 MB / 416.1 MB, free: 6.172 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3096, allocations: 0 / 416.1 MB, free: 6.172 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.3108, allocations: 0.7429 MB / 416.9 MB, free: 5.414 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007424/0.3116, allocations: 128.2 kB / 417 MB, free: 5.293 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003256/0.3148, allocations: 2.421 MB / 419.4 MB, free: 2.824 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.3151, allocations: 0.9283 MB / 420.4 MB, free: 1.867 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002064/0.3153, allocations: 59.42 kB / 420.4 MB, free: 1.809 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.3153, allocations: 0 / 420.4 MB, free: 1.809 MB / 298.7 MB Notification: Performance of Templates: time 0.01869/0.334, allocations: 17.37 MB / 437.8 MB, free: 404 kB / 314.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