Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.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.000779/0.000779, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 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.003127/0.003127, allocations: 160.2 kB / 24.7 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.85/0.85, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.203e-06/1.203e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.241e-05/2.362e-05, allocations: 2.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003269/0.003293, allocations: 2.915 MB / 328.7 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001747/0.005039, allocations: 1.3 MB / 330 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001576/0.005197, allocations: 7.938 kB / 330 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004423/0.005639, allocations: 103.1 kB / 330.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001945/0.005834, allocations: 134.8 kB / 330.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000608/0.006442, allocations: 438 kB / 330.7 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005281/0.00697, allocations: 0.8346 MB / 331.5 MB, free: 9.688 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001759/0.007146, allocations: 69.64 kB / 331.6 MB, free: 9.617 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004857/0.007631, allocations: 0.4953 MB / 332.1 MB, free: 9.121 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009991/0.008631, allocations: 1.412 MB / 333.5 MB, free: 7.707 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000108/0.008739, allocations: 72 kB / 333.6 MB, free: 7.637 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001907/0.008929, allocations: 127.9 kB / 333.7 MB, free: 7.512 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001675/0.009097, allocations: 243.8 kB / 333.9 MB, free: 7.273 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.009259, allocations: 239.4 kB / 334.2 MB, free: 7.039 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.01033, allocations: 0.9893 MB / 335.2 MB, free: 6.047 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.01033, allocations: 4 kB / 335.2 MB, free: 6.043 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.01033, allocations: 0 / 335.2 MB, free: 6.043 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.01034, allocations: 0 / 335.2 MB, free: 6.043 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001987/0.01233, allocations: 1.434 MB / 336.6 MB, free: 4.566 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.01237, allocations: 8.031 kB / 336.6 MB, free: 4.559 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000296/0.01266, allocations: 100.4 kB / 336.7 MB, free: 4.461 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004845/0.01315, allocations: 381.4 kB / 337.1 MB, free: 4.059 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.675e-05/0.01318, allocations: 33.38 kB / 337.1 MB, free: 4.027 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.234e-05/0.01325, allocations: 36.38 kB / 337.1 MB, free: 3.992 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009925/0.01424, allocations: 0.6385 MB / 337.8 MB, free: 3.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.01426, allocations: 8.141 kB / 337.8 MB, free: 3.332 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.58e-05/0.0143, allocations: 20.12 kB / 337.8 MB, free: 3.312 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.01431, allocations: 8 kB / 337.8 MB, free: 3.305 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.01535, allocations: 0.6895 MB / 338.5 MB, free: 2.613 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002127/0.01748, allocations: 1.426 MB / 339.9 MB, free: 1.125 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000775/0.01826, allocations: 476.8 kB / 340.4 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004281/0.01868, allocations: 281.6 kB / 340.7 MB, free: 368 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.487e-05/0.01873, allocations: 11.94 kB / 340.7 MB, free: 356 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006687/0.0194, allocations: 499.1 kB / 341.2 MB, free: 15.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=48): time 2.294e-06/0.0194, allocations: 0 / 341.2 MB, free: 15.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.004832/0.02423, allocations: 2.438 MB / 343.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/0.02427, allocations: 85.09 kB / 343.7 MB, free: 13.24 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006288/0.0249, allocations: 0.9102 MB / 344.6 MB, free: 12.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.629e-05/0.02496, allocations: 49.69 kB / 344.7 MB, free: 12.26 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001539/0.02511, allocations: 296.6 kB / 344.9 MB, free: 11.97 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.02523, allocations: 178.7 kB / 345.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/0.02537, allocations: 122.2 kB / 345.2 MB, free: 11.67 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.02548, allocations: 378.8 kB / 345.6 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000475/0.02595, allocations: 325.1 kB / 345.9 MB, free: 10.97 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005136/0.02647, allocations: 422.9 kB / 346.3 MB, free: 10.53 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007307/0.0272, allocations: 0.5103 MB / 346.9 MB, free: 9.988 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.0272, allocations: 0 / 346.9 MB, free: 9.988 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001495/0.02869, allocations: 0.9844 MB / 347.8 MB, free: 8.988 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.02872, allocations: 8 kB / 347.8 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.02873, allocations: 0 / 347.8 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008859/0.02961, allocations: 0.549 MB / 348.4 MB, free: 8.422 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003899/0.03, allocations: 115.8 kB / 348.5 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004351/0.03435, allocations: 4.453 MB / 353 MB, free: 3.629 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007297/0.03508, allocations: 231.7 kB / 353.2 MB, free: 3.402 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.784e-05/0.03512, allocations: 27.98 kB / 353.2 MB, free: 3.375 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003607/0.03548, allocations: 256.3 kB / 353.5 MB, free: 3.113 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.132e-05/0.03557, allocations: 71.53 kB / 353.5 MB, free: 3.043 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.864e-05/0.03567, allocations: 106.2 kB / 353.6 MB, free: 2.938 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.03568, allocations: 8 kB / 353.6 MB, free: 2.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.03568, allocations: 192 / 353.6 MB, free: 2.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.03569, allocations: 7.938 kB / 353.7 MB, free: 2.922 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00174/0.03743, allocations: 1.22 MB / 354.9 MB, free: 1.648 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.03743, allocations: 0 / 354.9 MB, free: 1.648 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000228/0.03766, allocations: 91.92 kB / 355 MB, free: 1.559 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006018/0.03826, allocations: 0.5099 MB / 355.5 MB, free: 1.039 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.931e-05/0.0383, allocations: 23.95 kB / 355.5 MB, free: 1.016 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003433/0.04174, allocations: 4.082 MB / 359.6 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.04174, allocations: 160 / 359.6 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001891/0.04363, allocations: 1.255 MB / 360.8 MB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002432/0.04387, allocations: 131.5 kB / 361 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.758e-05/0.04394, allocations: 27.94 kB / 361 MB, free: 11.26 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007095/0.04465, allocations: 271.6 kB / 361.3 MB, free: 10.99 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008992/0.04555, allocations: 0.5771 MB / 361.8 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.34e-05/0.04559, allocations: 27.97 kB / 361.9 MB, free: 10.39 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004674/0.04606, allocations: 0.6669 MB / 362.5 MB, free: 9.723 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.04606, allocations: 0 / 362.5 MB, free: 9.723 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005609/0.04662, allocations: 183.9 kB / 362.7 MB, free: 9.543 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * 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,5), (1,5), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007279/0.04735, allocations: 429.3 kB / 363.1 MB, free: 9.273 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001577/0.04892, allocations: 0.9182 MB / 364 MB, free: 8.328 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.04893, allocations: 0 / 364 MB, free: 8.328 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006993/0.04963, allocations: 0.6222 MB / 364.7 MB, free: 7.684 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004378/0.05007, allocations: 78.88 kB / 364.7 MB, free: 7.609 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002411/0.05248, allocations: 1.798 MB / 366.5 MB, free: 5.766 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.05269, allocations: 330.9 kB / 366.9 MB, free: 5.422 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.05281, allocations: 44.48 kB / 366.9 MB, free: 5.379 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/0.05282, allocations: 0 / 366.9 MB, free: 5.379 MB / 330.7 MB Notification: Performance of Templates: time 0.01199/0.0648, allocations: 14.42 MB / 381.3 MB, free: 6.953 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.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.41230158880353]