Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.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.001548/0.001548, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 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.00165/0.00165, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 18.57 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.057/1.057, allocations: 173.4 MB / 201.1 MB, free: 9.332 MB / 186.7 MB " [Timeout remaining time 179] 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.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.0.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.0.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.201e-05/2.344e-05, allocations: 2.312 kB / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003152/0.003176, allocations: 2.991 MB / 271 MB, free: 3.441 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.00485, allocations: 1.157 MB / 272.1 MB, free: 2.281 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.005005, allocations: 11.94 kB / 272.1 MB, free: 2.27 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003953/0.005401, allocations: 75.28 kB / 272.2 MB, free: 2.195 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.005582, allocations: 130.8 kB / 272.3 MB, free: 2.066 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000712/0.006294, allocations: 415.1 kB / 272.7 MB, free: 1.66 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006305/0.006925, allocations: 0.8188 MB / 273.6 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.007072, allocations: 57.77 kB / 273.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005496/0.007622, allocations: 499.1 kB / 274.1 MB, free: 292 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.008662, allocations: 1.287 MB / 275.4 MB, free: 15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.778e-05/0.008759, allocations: 68 kB / 275.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001701/0.008929, allocations: 119.9 kB / 275.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.009088, allocations: 235.8 kB / 275.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001743/0.009262, allocations: 239.4 kB / 276 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000643/0.009905, allocations: 0.7009 MB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.009909, allocations: 0 / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.00991, allocations: 0 / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.009921, allocations: 0 / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002012/0.01193, allocations: 1.382 MB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.01197, allocations: 8.922 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001701/0.01214, allocations: 112.4 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.01252, allocations: 384.2 kB / 278.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.357e-05/0.01256, allocations: 25.38 kB / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.932e-05/0.01263, allocations: 52.3 kB / 278.7 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.01363, allocations: 0.9844 MB / 279.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.01365, allocations: 8.141 kB / 279.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.878e-05/0.0137, allocations: 28.09 kB / 279.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.01371, allocations: 8 kB / 279.7 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.01477, allocations: 1.308 MB / 281 MB, free: 9.254 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002171/0.01694, allocations: 2.158 MB / 283.2 MB, free: 7.027 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000702/0.01764, allocations: 0.6853 MB / 283.9 MB, free: 6.316 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006679/0.01831, allocations: 0.5265 MB / 284.4 MB, free: 5.781 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.62e-05/0.01836, allocations: 15.94 kB / 284.4 MB, free: 5.766 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006061/0.01896, allocations: 0.7132 MB / 285.1 MB, free: 5.031 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 1.664e-06/0.01897, allocations: 0 / 285.1 MB, free: 5.031 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.004442/0.02341, allocations: 4.375 MB / 289.5 MB, free: 0.582 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/0.02344, allocations: 85.09 kB / 289.6 MB, free: 492 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.11/0.1334, allocations: 0.8626 MB / 290.4 MB, free: 30.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001538/0.1336, allocations: 47.86 kB / 290.5 MB, free: 30.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.1338, allocations: 363.8 kB / 290.8 MB, free: 30.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.1339, allocations: 167.5 kB / 291 MB, free: 30.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.1341, allocations: 126.2 kB / 291.1 MB, free: 30.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1342, allocations: 0.5673 MB / 291.7 MB, free: 29.61 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008279/0.135, allocations: 0.6594 MB / 292.4 MB, free: 29.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006344/0.1357, allocations: 0.7567 MB / 293.1 MB, free: 29.49 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009661/0.1366, allocations: 1.166 MB / 294.3 MB, free: 29.37 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.1366, allocations: 0.8438 kB / 294.3 MB, free: 29.37 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002294/0.1389, allocations: 2.034 MB / 296.3 MB, free: 29.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.1389, allocations: 7.281 kB / 296.3 MB, free: 29.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1389, allocations: 2.156 kB / 296.3 MB, free: 29.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001338/0.1403, allocations: 1.643 MB / 298 MB, free: 29.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002676/0.1406, allocations: 104.8 kB / 298.1 MB, free: 29.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003476/0.144, allocations: 7.111 MB / 305.2 MB, free: 24.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004232/0.1445, allocations: 142.7 kB / 305.3 MB, free: 23.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-05/0.1445, allocations: 26.62 kB / 305.3 MB, free: 23.93 MB / 266.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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002135/0.1447, allocations: 204.6 kB / 305.5 MB, free: 23.73 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.1449, allocations: 88.03 kB / 305.6 MB, free: 23.65 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.145, allocations: 95.3 kB / 305.7 MB, free: 23.56 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.145, allocations: 4.547 kB / 305.7 MB, free: 23.56 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.145, allocations: 1.938 kB / 305.7 MB, free: 23.56 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.145, allocations: 6.469 kB / 305.7 MB, free: 23.56 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002349/0.1473, allocations: 2.609 MB / 308.3 MB, free: 21.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.1473, allocations: 6.391 kB / 308.3 MB, free: 21.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002018/0.1475, allocations: 78.5 kB / 308.4 MB, free: 21.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008597/0.1484, allocations: 1.625 MB / 310.1 MB, free: 19.76 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.933e-05/0.1484, allocations: 27.31 kB / 310.1 MB, free: 19.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002786/0.1512, allocations: 6.659 MB / 316.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.1512, allocations: 7.984 kB / 316.7 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/0.153, allocations: 2.636 MB / 319.4 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001835/0.1532, allocations: 140.5 kB / 319.5 MB, free: 10.33 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.509e-05/0.1533, allocations: 27.98 kB / 319.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004611/0.1537, allocations: 171.8 kB / 319.7 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006874/0.1544, allocations: 0.5107 MB / 320.2 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-05/0.1545, allocations: 23.97 kB / 320.2 MB, free: 9.598 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003217/0.1548, allocations: 0.5732 MB / 320.8 MB, free: 9.027 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1548, allocations: 4 kB / 320.8 MB, free: 9.023 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005744/0.1553, allocations: 190 kB / 321 MB, free: 8.84 MB / 266.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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002174/0.1556, allocations: 157.5 kB / 321.2 MB, free: 8.684 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.1568, allocations: 1.643 MB / 322.8 MB, free: 7.012 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.1568, allocations: 0 / 322.8 MB, free: 7.012 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005693/0.1574, allocations: 0.9646 MB / 323.8 MB, free: 6.004 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004237/0.1578, allocations: 118.2 kB / 323.9 MB, free: 5.898 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002063/0.1599, allocations: 1.638 MB / 325.5 MB, free: 4.242 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.766e-05/0.16, allocations: 161.7 kB / 325.7 MB, free: 4.062 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.1601, allocations: 47.27 kB / 325.7 MB, free: 4.016 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.1602, allocations: 48.47 kB / 325.8 MB, free: 3.969 MB / 266.7 MB Notification: Performance of SimCode: time 1.804e-06/0.1602, allocations: 0 / 325.8 MB, free: 3.969 MB / 266.7 MB Notification: Performance of Templates: time 0.02241/0.1826, allocations: 20.41 MB / 346.2 MB, free: 15.58 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.457019546069205]