Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001025/0.001025, allocations: 92.23 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001508/0.001509, allocations: 201.9 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 227.7 MB / 247.5 MB, free: 9.504 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000261/0.000261, allocations: 8 kB / 308.4 MB, free: 0.5742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09246/0.09274, allocations: 51.52 MB / 359.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004722/0.09751, allocations: 4.069 MB / 364 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002943/0.1005, allocations: 1.551 MB / 365.5 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005132/0.101, allocations: 15.88 kB / 365.5 MB, free: 7.387 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004783/0.1015, allocations: 111.2 kB / 365.6 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008315/0.1024, allocations: 226.3 kB / 365.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009904/0.1034, allocations: 387 kB / 366.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001344/0.1047, allocations: 1.108 MB / 367.4 MB, free: 5.562 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004442/0.1052, allocations: 227 kB / 367.6 MB, free: 5.332 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008534/0.1061, allocations: 454.3 kB / 368 MB, free: 4.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008175/0.1069, allocations: 498 kB / 368.5 MB, free: 4.398 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002448/0.1071, allocations: 48 kB / 368.6 MB, free: 4.352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004658/0.1076, allocations: 120 kB / 368.7 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002968/0.1079, allocations: 187.3 kB / 368.9 MB, free: 4.051 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005449/0.1085, allocations: 435.5 kB / 369.3 MB, free: 3.617 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008999/0.1094, allocations: 0.8027 MB / 370.1 MB, free: 2.812 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.1094, allocations: 0 / 370.1 MB, free: 2.812 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.1094, allocations: 0 / 370.1 MB, free: 2.812 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.784e-05/0.1095, allocations: 0 / 370.1 MB, free: 2.812 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.00338/0.1128, allocations: 1.236 MB / 371.3 MB, free: 1.527 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.1129, allocations: 19.97 kB / 371.3 MB, free: 1.508 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000638/0.1135, allocations: 115.9 kB / 371.5 MB, free: 1.395 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007936/0.1144, allocations: 465.5 kB / 371.9 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.794e-05/0.1144, allocations: 54.38 kB / 372 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002014/0.1146, allocations: 84.05 kB / 372 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1663/0.2809, allocations: 0.8037 MB / 372.8 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001004/0.2811, allocations: 6.25 kB / 372.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002287/0.2813, allocations: 28.81 kB / 372.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.403e-05/0.2813, allocations: 18.25 kB / 372.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002645/0.284, allocations: 0.8644 MB / 373.8 MB, free: 18.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005643/0.2897, allocations: 2.489 MB / 376.3 MB, free: 17.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001655/0.2914, allocations: 0.7459 MB / 377 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009093/0.2923, allocations: 468 kB / 377.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-05/0.2924, allocations: 17.95 kB / 377.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001205/0.2936, allocations: 0.549 MB / 378 MB, free: 17.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 3.105e-06/0.2936, allocations: 0 / 378 MB, free: 17.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.01159/0.3052, allocations: 4.4 MB / 382.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.404e-05/0.3053, allocations: 63.39 kB / 382.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005844/0.3059, allocations: 418.6 kB / 382.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000105/0.306, allocations: 60.91 kB / 382.9 MB, free: 14.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001813/0.3062, allocations: 275 kB / 383.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002937/0.3065, allocations: 381 kB / 383.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/0.3067, allocations: 96.77 kB / 383.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3068, allocations: 374.8 kB / 384.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/0.3078, allocations: 427.4 kB / 384.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001066/0.3089, allocations: 0.5166 MB / 385 MB, free: 13.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001711/0.3106, allocations: 0.7662 MB / 385.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.3106, allocations: 0.7031 kB / 385.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003317/0.3139, allocations: 1.321 MB / 387.1 MB, free: 12.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.314, allocations: 6.312 kB / 387.1 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.314, allocations: 1.25 kB / 387.1 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/0.3151, allocations: 0.5364 MB / 387.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008056/0.3159, allocations: 205.6 kB / 387.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003848/0.3198, allocations: 3.276 MB / 391.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001399/0.3212, allocations: 238.3 kB / 391.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/0.3214, allocations: 36.66 kB / 391.4 MB, free: 9.586 MB / 302.1 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,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004625/0.3218, allocations: 232.2 kB / 391.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001959/0.322, allocations: 73.02 kB / 391.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002479/0.3223, allocations: 105.3 kB / 391.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/0.3223, allocations: 14.88 kB / 391.8 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.584e-05/0.3223, allocations: 1.766 kB / 391.8 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.3224, allocations: 5.297 kB / 391.8 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004746/0.3271, allocations: 2.533 MB / 394.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/0.3272, allocations: 2.656 kB / 394.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007384/0.3279, allocations: 183.5 kB / 394.5 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009047/0.3288, allocations: 0.5067 MB / 395 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.096e-05/0.3289, allocations: 33.12 kB / 395 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003031/0.332, allocations: 3.099 MB / 398.1 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.332, allocations: 6.219 kB / 398.1 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003355/0.3354, allocations: 1.805 MB / 399.9 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000391/0.3358, allocations: 235.5 kB / 400.2 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001755/0.336, allocations: 39.72 kB / 400.2 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/0.3374, allocations: 268 kB / 400.5 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008327/0.3382, allocations: 368.5 kB / 400.8 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.899e-05/0.3383, allocations: 39.41 kB / 400.9 MB, free: 3.051 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003356/0.3387, allocations: 289.9 kB / 401.2 MB, free: 2.875 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3387, allocations: 0 / 401.2 MB, free: 2.875 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001/0.3397, allocations: 243.4 kB / 401.4 MB, free: 2.84 MB / 302.1 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 (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009561/0.3406, allocations: 420.6 kB / 401.8 MB, free: 2.621 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002406/0.3431, allocations: 1.169 MB / 403 MB, free: 1.469 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.3431, allocations: 0 / 403 MB, free: 1.469 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001299/0.3444, allocations: 0.7312 MB / 403.7 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.3455, allocations: 147 kB / 403.9 MB, free: 0.582 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004513/0.35, allocations: 2.563 MB / 406.4 MB, free: 13.96 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005462/0.3506, allocations: 0.9479 MB / 407.4 MB, free: 12.99 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003142/0.3509, allocations: 67.41 kB / 407.4 MB, free: 12.92 MB / 318.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3509, allocations: 0 / 407.4 MB, free: 12.92 MB / 318.1 MB Notification: Performance of Templates: time 0.02339/0.3743, allocations: 18.15 MB / 425.6 MB, free: 10.76 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches