Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009808/0.0009808, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001242/0.002223, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007381/0.0007381, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00106/0.001798, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9148/0.9148, allocations: 177.5 MB / 190 MB, free: 4.754 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08283/0.9977, allocations: 53.87 MB / 243.9 MB, free: 14.81 MB / 250.7 MB " [Timeout remaining time 179] 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.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.983e-06/1.983e-06, allocations: 0 / 245.2 MB, free: 13.53 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.245e-05/2.444e-05, allocations: 2.312 kB / 245.2 MB, free: 13.53 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004662/0.004686, allocations: 3.19 MB / 248.4 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002338/0.007024, allocations: 1.157 MB / 249.6 MB, free: 9.152 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002907/0.007315, allocations: 11.94 kB / 249.6 MB, free: 9.141 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003075/0.007623, allocations: 79.23 kB / 249.6 MB, free: 9.062 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005504/0.008173, allocations: 206.3 kB / 249.9 MB, free: 8.859 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003973/0.00857, allocations: 211.6 kB / 250.1 MB, free: 8.652 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005862/0.009157, allocations: 0.6665 MB / 250.7 MB, free: 7.98 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.009323, allocations: 105.3 kB / 250.8 MB, free: 7.875 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005398/0.009863, allocations: 455.7 kB / 251.3 MB, free: 7.43 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003161/0.01018, allocations: 255.4 kB / 251.5 MB, free: 7.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.238e-05/0.01025, allocations: 52 kB / 251.6 MB, free: 7.129 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001853/0.01044, allocations: 115.8 kB / 251.7 MB, free: 7.016 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.01054, allocations: 95.69 kB / 251.8 MB, free: 6.922 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.01066, allocations: 143.7 kB / 251.9 MB, free: 6.781 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004469/0.01111, allocations: 450.4 kB / 252.4 MB, free: 6.34 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.232e-05/0.01112, allocations: 4 kB / 252.4 MB, free: 6.336 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.01112, allocations: 0 / 252.4 MB, free: 6.336 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.402e-05/0.01113, allocations: 0 / 252.4 MB, free: 6.336 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.0009235/0.01206, allocations: 0.8188 MB / 253.2 MB, free: 5.488 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.01209, allocations: 12.61 kB / 253.2 MB, free: 5.477 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002077/0.0123, allocations: 150 kB / 253.3 MB, free: 5.312 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003223/0.01262, allocations: 262.2 kB / 253.6 MB, free: 5.027 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.977e-05/0.01265, allocations: 29.38 kB / 253.6 MB, free: 5 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.778e-05/0.01271, allocations: 48.33 kB / 253.7 MB, free: 4.953 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003694/0.01308, allocations: 346.8 kB / 254 MB, free: 4.609 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.01309, allocations: 4.172 kB / 254 MB, free: 4.605 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.602e-05/0.01312, allocations: 16.38 kB / 254 MB, free: 4.59 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.01313, allocations: 11.94 kB / 254 MB, free: 4.578 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002503/0.01338, allocations: 202.8 kB / 254.2 MB, free: 4.379 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009519/0.01433, allocations: 0.6655 MB / 254.9 MB, free: 3.691 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003599/0.01469, allocations: 252.6 kB / 255.2 MB, free: 3.434 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.01484, allocations: 126.3 kB / 255.3 MB, free: 3.309 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.494e-05/0.01488, allocations: 8.5 kB / 255.3 MB, free: 3.301 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.0149, allocations: 43.06 kB / 255.3 MB, free: 3.246 MB / 250.7 MB Notification: Performance of pre-optimization done (n=55): time 1.463e-06/0.0149, allocations: 0 / 255.3 MB, free: 3.246 MB / 250.7 MB Notification: Performance of matching and sorting (n=61): time 0.001963/0.01687, allocations: 1.395 MB / 256.7 MB, free: 1.801 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.813e-05/0.01689, allocations: 63.91 kB / 256.8 MB, free: 1.727 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.01706, allocations: 256.7 kB / 257 MB, free: 1.461 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.035e-05/0.0171, allocations: 49.69 kB / 257.1 MB, free: 1.406 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.395e-05/0.01716, allocations: 162 kB / 257.2 MB, free: 1.246 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.01728, allocations: 218.2 kB / 257.5 MB, free: 1.031 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.01739, allocations: 106.2 kB / 257.6 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.01749, allocations: 358.7 kB / 257.9 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.01762, allocations: 89.27 kB / 258 MB, free: 488 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.01775, allocations: 140.8 kB / 258.1 MB, free: 340 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002206/0.01797, allocations: 244.8 kB / 258.4 MB, free: 88 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.01797, allocations: 0 / 258.4 MB, free: 88 kB / 250.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0005217/0.01849, allocations: 414.9 kB / 258.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.01851, allocations: 7.938 kB / 258.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.01851, allocations: 0 / 258.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003901/0.0189, allocations: 273.3 kB / 259.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.01908, allocations: 87.89 kB / 259.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005917/0.01967, allocations: 1.201 MB / 260.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.01986, allocations: 55.94 kB / 260.4 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/0.01988, allocations: 11.98 kB / 260.4 MB, free: 13.98 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001165/0.01999, allocations: 149.5 kB / 260.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.999e-05/0.02005, allocations: 51.89 kB / 260.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.48e-05/0.02012, allocations: 63.69 kB / 260.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.02012, allocations: 4 kB / 260.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.02013, allocations: 3.938 kB / 260.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.02013, allocations: 3.984 kB / 260.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009885/0.02112, allocations: 0.7879 MB / 261.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.02113, allocations: 4 kB / 261.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001922/0.02132, allocations: 91.89 kB / 261.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.02142, allocations: 59.88 kB / 261.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002973/0.02172, allocations: 261.5 kB / 261.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.189e-05/0.02175, allocations: 23.97 kB / 261.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005501/0.0223, allocations: 1.196 MB / 263.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.0223, allocations: 3.938 kB / 263.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006006/0.0229, allocations: 0.6185 MB / 263.7 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.07e-05/0.02295, allocations: 20 kB / 263.7 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.02311, allocations: 43.95 kB / 263.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.02323, allocations: 104.2 kB / 263.9 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.241e-05/0.02325, allocations: 19.97 kB / 263.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.28e-05/0.02332, allocations: 96.62 kB / 264 MB, free: 10.22 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02332, allocations: 0 / 264 MB, free: 10.22 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002511/0.02358, allocations: 128 kB / 264.1 MB, free: 10.1 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001096/0.02467, allocations: 0.5023 MB / 264.6 MB, free: 9.785 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004357/0.02511, allocations: 340.2 kB / 265 MB, free: 9.457 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.287e-05/0.02512, allocations: 4 kB / 265 MB, free: 9.453 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000255/0.02538, allocations: 243.2 kB / 265.2 MB, free: 9.211 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004698/0.02584, allocations: 0.6749 MB / 265.9 MB, free: 8.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004149/0.02999, allocations: 1.118 MB / 267 MB, free: 7.25 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.875e-05/0.03006, allocations: 118.8 kB / 267.1 MB, free: 7.113 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001083/0.03017, allocations: 47.28 kB / 267.1 MB, free: 7.062 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001733/0.03034, allocations: 131.3 kB / 267.3 MB, free: 6.934 MB / 266.7 MB Notification: Performance of SimCode: time 8.12e-07/0.03034, allocations: 0 / 267.3 MB, free: 6.934 MB / 266.7 MB Notification: Performance of Templates: time 0.09294/0.1233, allocations: 9.483 MB / 276.8 MB, free: 22.53 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.902930342592299]