Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 109.6 kB / 21.18 MB, free: 0.7188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 216.7 kB / 24.49 MB, free: 4.09 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001989/0.001989, allocations: 52.34 kB / 347.7 MB, free: 9.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3065, allocations: 49.17 MB / 396.8 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005161/0.3117, allocations: 4.342 MB / 401.2 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002875/0.3146, allocations: 1.355 MB / 402.5 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004462/0.315, allocations: 18 kB / 402.6 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003825/0.3154, allocations: 115.6 kB / 402.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004705/0.3159, allocations: 233 kB / 402.9 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.3173, allocations: 435.3 kB / 403.3 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001354/0.3186, allocations: 1.136 MB / 404.5 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003686/0.319, allocations: 194.6 kB / 404.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008305/0.3198, allocations: 495.8 kB / 405.1 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007177/0.3206, allocations: 0.517 MB / 405.7 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001591/0.3207, allocations: 91.47 kB / 405.7 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003394/0.3211, allocations: 152.2 kB / 405.9 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002461/0.3213, allocations: 229.7 kB / 406.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004135/0.3217, allocations: 445.6 kB / 406.5 MB, free: 3.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001643/0.3234, allocations: 1.066 MB / 407.6 MB, free: 3.234 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.3234, allocations: 3.938 kB / 407.6 MB, free: 3.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3234, allocations: 0 / 407.6 MB, free: 3.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.3234, allocations: 4 kB / 407.6 MB, free: 3.227 MB / 318.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.003402/0.3268, allocations: 1.358 MB / 409 MB, free: 2.355 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.3268, allocations: 16.19 kB / 409 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002616/0.3271, allocations: 93.75 kB / 409.1 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000645/0.3277, allocations: 379.4 kB / 409.5 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.086e-05/0.3278, allocations: 50.69 kB / 409.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.3279, allocations: 79.78 kB / 409.6 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001596/0.3295, allocations: 0.8096 MB / 410.4 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.531e-05/0.3296, allocations: 6.578 kB / 410.4 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-05/0.3296, allocations: 29.12 kB / 410.4 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.3297, allocations: 15.91 kB / 410.4 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001855/0.3315, allocations: 0.871 MB / 411.3 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004513/0.336, allocations: 2.319 MB / 413.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001641/0.3377, allocations: 0.6729 MB / 414.3 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009609/0.3386, allocations: 428.3 kB / 414.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.78e-05/0.3387, allocations: 21.89 kB / 414.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001225/0.34, allocations: 0.5445 MB / 415.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 3.637e-06/0.34, allocations: 0 / 415.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01183/0.3518, allocations: 3.87 MB / 419.2 MB, free: 12.26 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.474e-05/0.3518, allocations: 62.22 kB / 419.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005762/0.3524, allocations: 393.5 kB / 419.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001119/0.3525, allocations: 54.17 kB / 419.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002697/0.3528, allocations: 274.2 kB / 419.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003982/0.3532, allocations: 387.3 kB / 420.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003894/0.3536, allocations: 186.6 kB / 420.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002397/0.3538, allocations: 372 kB / 420.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001081/0.3549, allocations: 436.8 kB / 421.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.3561, allocations: 0.5316 MB / 421.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001824/0.3579, allocations: 0.7792 MB / 422.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3579, allocations: 0 / 422.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003372/0.3613, allocations: 1.342 MB / 423.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.3613, allocations: 8 kB / 423.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.3613, allocations: 0 / 423.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001306/0.3626, allocations: 0.6543 MB / 424.6 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008399/0.3635, allocations: 199.8 kB / 424.8 MB, free: 7.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005022/0.3685, allocations: 3.335 MB / 428.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/0.37, allocations: 175.8 kB / 428.3 MB, free: 3.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.029e-05/0.37, allocations: 35.98 kB / 428.3 MB, free: 3.504 MB / 334.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.0005408/0.3706, allocations: 229.6 kB / 428.6 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000167/0.3707, allocations: 67.58 kB / 428.6 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002601/0.371, allocations: 103 kB / 428.7 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.371, allocations: 15.94 kB / 428.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.747e-05/0.371, allocations: 0 / 428.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.3711, allocations: 7.969 kB / 428.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005318/0.3764, allocations: 2.458 MB / 431.2 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.311e-06/0.3764, allocations: 0 / 431.2 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008561/0.3772, allocations: 175.8 kB / 431.4 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.3785, allocations: 0.6234 MB / 432 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.3786, allocations: 39.95 kB / 432 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004137/0.3827, allocations: 3.111 MB / 435.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.3827, allocations: 7.969 kB / 435.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00423/0.3869, allocations: 1.833 MB / 437 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005552/0.3875, allocations: 155.4 kB / 437.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.3876, allocations: 32 kB / 437.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001792/0.3894, allocations: 207.7 kB / 437.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001479/0.3909, allocations: 392.2 kB / 437.8 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001435/0.3911, allocations: 47.89 kB / 437.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004838/0.3915, allocations: 271.1 kB / 438.1 MB, free: 9.426 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3915, allocations: 4 kB / 438.1 MB, free: 9.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001371/0.3929, allocations: 244 kB / 438.3 MB, free: 9.184 MB / 350.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.0004373/0.3934, allocations: 164.8 kB / 438.5 MB, free: 9.016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004039/0.3974, allocations: 1.126 MB / 439.6 MB, free: 7.879 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.3974, allocations: 3.938 kB / 439.6 MB, free: 7.875 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002616/0.4, allocations: 0.739 MB / 440.3 MB, free: 7.125 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001499/0.4015, allocations: 140.3 kB / 440.5 MB, free: 6.988 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005929/0.4074, allocations: 1.968 MB / 442.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006566/0.4081, allocations: 0.9361 MB / 443.4 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004402/0.4085, allocations: 69.47 kB / 443.5 MB, free: 3.934 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/0.4087, allocations: 71.34 kB / 443.5 MB, free: 3.863 MB / 350.1 MB Notification: Performance of SimCode: time 1.653e-06/0.4087, allocations: 0 / 443.5 MB, free: 3.863 MB / 350.1 MB Notification: Performance of Templates: time 0.03321/0.442, allocations: 18.6 MB / 462.1 MB, free: 1.227 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.611984824063256]