Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00165/0.00165, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00201/0.00201, allocations: 182.1 kB / 23.7 MB, free: 4.414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 51.91 kB / 370.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2529, allocations: 52.17 MB / 423.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.00626/0.2592, allocations: 3.912 MB / 427 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003139/0.2623, allocations: 1.34 MB / 428.3 MB, free: 9.215 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003146/0.2626, allocations: 15.88 kB / 428.3 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004191/0.263, allocations: 122.8 kB / 428.4 MB, free: 9.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000526/0.2636, allocations: 237.9 kB / 428.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.2648, allocations: 431.1 kB / 429.1 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001211/0.2661, allocations: 1.135 MB / 430.2 MB, free: 7.277 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000359/0.2664, allocations: 174.2 kB / 430.4 MB, free: 7.094 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008007/0.2672, allocations: 494.6 kB / 430.9 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006495/0.2679, allocations: 482.1 kB / 431.4 MB, free: 6.137 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.268, allocations: 88 kB / 431.4 MB, free: 6.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003488/0.2684, allocations: 147.9 kB / 431.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002445/0.2686, allocations: 231.2 kB / 431.8 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000395/0.269, allocations: 378.4 kB / 432.2 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001181/0.2702, allocations: 1.073 MB / 433.3 MB, free: 4.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.2702, allocations: 0 / 433.3 MB, free: 4.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2702, allocations: 3.938 kB / 433.3 MB, free: 4.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.443e-05/0.2702, allocations: 0 / 433.3 MB, free: 4.234 MB / 334.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.003463/0.2737, allocations: 1.353 MB / 434.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.2737, allocations: 8.031 kB / 434.6 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002309/0.2739, allocations: 100.4 kB / 434.7 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006863/0.2746, allocations: 384.1 kB / 435.1 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.114e-05/0.2747, allocations: 54.38 kB / 435.2 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.2748, allocations: 72.33 kB / 435.2 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001761/0.2766, allocations: 0.8077 MB / 436 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.836e-05/0.2766, allocations: 15.94 kB / 436 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-05/0.2767, allocations: 24 kB / 436.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.88e-05/0.2767, allocations: 16 kB / 436.1 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002164/0.2789, allocations: 0.8588 MB / 436.9 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004491/0.2834, allocations: 1.842 MB / 438.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001691/0.2851, allocations: 0.6769 MB / 439.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001/0.2861, allocations: 432.3 kB / 439.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.596e-05/0.2862, allocations: 13 kB / 439.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001262/0.2874, allocations: 0.5478 MB / 440.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=86): time 2.956e-06/0.2874, allocations: 0 / 440.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.01159/0.299, allocations: 3.861 MB / 444.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.451e-05/0.2991, allocations: 68.28 kB / 444.4 MB, free: 8.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000459/0.2996, allocations: 381.5 kB / 444.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/0.2997, allocations: 57.69 kB / 444.8 MB, free: 8.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002357/0.2999, allocations: 273.5 kB / 445.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003525/0.3003, allocations: 384.8 kB / 445.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003393/0.3006, allocations: 182.9 kB / 445.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001966/0.3008, allocations: 370.8 kB / 446 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.3019, allocations: 442.4 kB / 446.4 MB, free: 6.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001136/0.303, allocations: 0.5306 MB / 446.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002123/0.3051, allocations: 0.7753 MB / 447.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.3051, allocations: 0 / 447.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003268/0.3084, allocations: 1.346 MB / 449.1 MB, free: 4.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.3084, allocations: 8 kB / 449.1 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.3084, allocations: 4 kB / 449.1 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/0.3096, allocations: 0.6582 MB / 449.7 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008319/0.3105, allocations: 199.7 kB / 449.9 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005993/0.3165, allocations: 3.293 MB / 453.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/0.3181, allocations: 175.9 kB / 453.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001338/0.3183, allocations: 39.98 kB / 453.4 MB, free: 15.6 MB / 366.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,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0005867/0.3188, allocations: 227.8 kB / 453.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002069/0.319, allocations: 71.58 kB / 453.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002966/0.3193, allocations: 98.89 kB / 453.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/0.3194, allocations: 12 kB / 453.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/0.3194, allocations: 0 / 453.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.3194, allocations: 3.984 kB / 453.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006883/0.3263, allocations: 2.183 MB / 456 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/0.3263, allocations: 4 kB / 456 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001177/0.3275, allocations: 171.8 kB / 456.2 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00163/0.3291, allocations: 0.6233 MB / 456.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.3292, allocations: 35.95 kB / 456.9 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005443/0.3346, allocations: 3.07 MB / 459.9 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.087e-06/0.3346, allocations: 7.969 kB / 459.9 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006323/0.341, allocations: 1.845 MB / 461.8 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006475/0.3416, allocations: 159.4 kB / 461.9 MB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002162/0.3418, allocations: 32 kB / 462 MB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001908/0.3437, allocations: 207.7 kB / 462.2 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001451/0.3452, allocations: 396.2 kB / 462.6 MB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/0.3453, allocations: 44.14 kB / 462.6 MB, free: 6.148 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004195/0.3458, allocations: 255.2 kB / 462.8 MB, free: 5.898 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3458, allocations: 0 / 462.8 MB, free: 5.898 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008276/0.3466, allocations: 247.9 kB / 463.1 MB, free: 5.656 MB / 366.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 (89): * Single equations (assignments): 86 * 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,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003411/0.3469, allocations: 172.9 kB / 463.3 MB, free: 5.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00285/0.3498, allocations: 1.122 MB / 464.4 MB, free: 4.348 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.3498, allocations: 4 kB / 464.4 MB, free: 4.344 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001819/0.3516, allocations: 0.7463 MB / 465.1 MB, free: 3.586 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009121/0.3525, allocations: 121.9 kB / 465.2 MB, free: 3.465 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0044/0.3569, allocations: 1.976 MB / 467.2 MB, free: 1.434 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003901/0.3573, allocations: 336.8 kB / 467.6 MB, free: 1.082 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003811/0.3577, allocations: 81.33 kB / 467.6 MB, free: 1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002023/0.3579, allocations: 59.42 kB / 467.7 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3579, allocations: 0 / 467.7 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of Templates: time 0.02936/0.3872, allocations: 16.5 MB / 484.2 MB, free: 0.5859 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.440682047978044]