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.001236/0.001236, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001368/0.001368, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 247.4 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 59.94 kB / 307.6 MB, free: 0.6797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1024, allocations: 50.53 MB / 358.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006418/0.1088, allocations: 4.47 MB / 362.6 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0032/0.1121, allocations: 1.578 MB / 364.2 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006511/0.1128, allocations: 11.94 kB / 364.2 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005943/0.1134, allocations: 142.6 kB / 364.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009858/0.1144, allocations: 277.8 kB / 364.6 MB, free: 7.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001244/0.1157, allocations: 423.2 kB / 365 MB, free: 7.242 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001435/0.1171, allocations: 1.159 MB / 366.2 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004813/0.1176, allocations: 265.7 kB / 366.4 MB, free: 5.809 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009192/0.1186, allocations: 0.4906 MB / 366.9 MB, free: 5.316 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008622/0.1194, allocations: 0.5293 MB / 367.5 MB, free: 4.785 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003084/0.1198, allocations: 96 kB / 367.6 MB, free: 4.691 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005209/0.1203, allocations: 168 kB / 367.7 MB, free: 4.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003452/0.1206, allocations: 239.2 kB / 368 MB, free: 4.293 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006607/0.1213, allocations: 465.8 kB / 368.4 MB, free: 3.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001513/0.1228, allocations: 1.11 MB / 369.5 MB, free: 2.723 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.625e-06/0.1229, allocations: 4 kB / 369.5 MB, free: 2.719 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1229, allocations: 0 / 369.5 MB, free: 2.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.672e-05/0.1229, allocations: 0 / 369.5 MB, free: 2.719 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.004245/0.1272, allocations: 1.322 MB / 370.8 MB, free: 1.348 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.1273, allocations: 8.031 kB / 370.8 MB, free: 1.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006297/0.1279, allocations: 123.9 kB / 371 MB, free: 1.219 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007543/0.1287, allocations: 453.5 kB / 371.4 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.54e-05/0.1287, allocations: 58.38 kB / 371.5 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001571/0.1289, allocations: 76.12 kB / 371.5 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1496/0.2785, allocations: 0.7985 MB / 372.3 MB, free: 19.83 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.549e-05/0.2786, allocations: 5.891 kB / 372.3 MB, free: 19.83 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001005/0.2787, allocations: 28.78 kB / 372.4 MB, free: 19.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.3e-05/0.2787, allocations: 17.7 kB / 372.4 MB, free: 19.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002211/0.2809, allocations: 0.84 MB / 373.2 MB, free: 19.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004523/0.2855, allocations: 2.42 MB / 375.7 MB, free: 18.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.287, allocations: 0.734 MB / 376.4 MB, free: 18.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008867/0.2879, allocations: 462.6 kB / 376.8 MB, free: 18.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.879e-05/0.288, allocations: 10.62 kB / 376.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001104/0.2891, allocations: 0.5365 MB / 377.4 MB, free: 17.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 4.218e-06/0.2892, allocations: 1.188 kB / 377.4 MB, free: 17.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.011/0.3002, allocations: 4.166 MB / 381.6 MB, free: 16.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.3002, allocations: 62.94 kB / 381.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005137/0.3007, allocations: 418.2 kB / 382 MB, free: 15.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.329e-05/0.3008, allocations: 58 kB / 382.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.301, allocations: 274 kB / 382.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002381/0.3012, allocations: 383.4 kB / 382.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003086/0.3016, allocations: 188 kB / 382.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.447e-05/0.3017, allocations: 379.2 kB / 383.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009189/0.3026, allocations: 412.4 kB / 383.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009913/0.3036, allocations: 0.5101 MB / 384.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001553/0.3052, allocations: 0.7421 MB / 384.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3052, allocations: 5.094 kB / 384.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003064/0.3082, allocations: 1.298 MB / 386.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/0.3083, allocations: 7.875 kB / 386.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.3083, allocations: 2.984 kB / 386.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/0.3094, allocations: 0.5358 MB / 386.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000827/0.3102, allocations: 198 kB / 387 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003535/0.3138, allocations: 3.405 MB / 390.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001314/0.3151, allocations: 175.1 kB / 390.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.452e-05/0.3152, allocations: 36.69 kB / 390.6 MB, free: 10.29 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.000377/0.3156, allocations: 225.7 kB / 390.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/0.3158, allocations: 76.81 kB / 390.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001746/0.3159, allocations: 107 kB / 391 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.948e-06/0.316, allocations: 11.31 kB / 391 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/0.316, allocations: 4 kB / 391 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.316, allocations: 5.438 kB / 391 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004202/0.3202, allocations: 2.509 MB / 393.5 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.3202, allocations: 2.75 kB / 393.5 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007326/0.321, allocations: 177.7 kB / 393.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008492/0.3218, allocations: 0.5082 MB / 394.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.899e-05/0.3219, allocations: 33.59 kB / 394.2 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003049/0.325, allocations: 3.173 MB / 397.4 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.325, allocations: 6.875 kB / 397.4 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003414/0.3285, allocations: 1.769 MB / 399.2 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003948/0.3289, allocations: 235.9 kB / 399.4 MB, free: 3.918 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.329, allocations: 37.91 kB / 399.4 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/0.3303, allocations: 199.9 kB / 399.6 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007377/0.3311, allocations: 385.4 kB / 400 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.127e-05/0.3312, allocations: 39.25 kB / 400.1 MB, free: 3.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002791/0.3315, allocations: 290.9 kB / 400.3 MB, free: 3.375 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3315, allocations: 0 / 400.3 MB, free: 3.375 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007763/0.3322, allocations: 248.6 kB / 400.6 MB, free: 3.34 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.0008483/0.3331, allocations: 410.3 kB / 401 MB, free: 3.125 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002865/0.336, allocations: 1.199 MB / 402.2 MB, free: 2.402 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.336, allocations: 320 / 402.2 MB, free: 2.402 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001253/0.3373, allocations: 0.7257 MB / 402.9 MB, free: 1.668 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009268/0.3382, allocations: 143.1 kB / 403.1 MB, free: 1.527 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00358/0.3418, allocations: 2.05 MB / 405.1 MB, free: 15.44 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004967/0.3423, allocations: 0.9478 MB / 406 MB, free: 14.46 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002499/0.3426, allocations: 79.34 kB / 406.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of SimCode: time 2.043e-06/0.3426, allocations: 4 kB / 406.1 MB, free: 14.38 MB / 318.1 MB Notification: Performance of Templates: time 0.0223/0.3649, allocations: 18.27 MB / 424.4 MB, free: 12.1 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