Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.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.001146/0.001146, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002005/0.003151, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.001117/0.001117, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001481/0.002598, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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 0.909/0.909, allocations: 158.6 MB / 171.2 MB, free: 2.5 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1551/1.064, allocations: 49.49 MB / 220.7 MB, free: 1.359 MB / 218.7 MB " [Timeout remaining time 179] 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.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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 222 MB, free: 64 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.878e-05/3.037e-05, allocations: 9.406 kB / 222 MB, free: 56 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004805/0.004835, allocations: 3.053 MB / 225 MB, free: 12.98 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.006859, allocations: 0.9937 MB / 226 MB, free: 11.97 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001902/0.007049, allocations: 11.94 kB / 226 MB, free: 11.96 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002336/0.007283, allocations: 63.31 kB / 226.1 MB, free: 11.9 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002744/0.007557, allocations: 150.7 kB / 226.3 MB, free: 11.75 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005522/0.008109, allocations: 223.5 kB / 226.5 MB, free: 11.53 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005707/0.00868, allocations: 0.6315 MB / 227.1 MB, free: 10.9 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002033/0.008883, allocations: 105.2 kB / 227.2 MB, free: 10.79 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004528/0.009336, allocations: 415.8 kB / 227.6 MB, free: 10.39 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002716/0.009608, allocations: 243.4 kB / 227.9 MB, free: 10.15 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.979e-05/0.009667, allocations: 52 kB / 227.9 MB, free: 10.1 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001945/0.009862, allocations: 103.9 kB / 228 MB, free: 9.996 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.65e-05/0.009948, allocations: 83.75 kB / 228.1 MB, free: 9.914 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.01006, allocations: 139.7 kB / 228.2 MB, free: 9.777 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004164/0.01048, allocations: 402.6 kB / 228.6 MB, free: 9.383 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.567e-05/0.01049, allocations: 0 / 228.6 MB, free: 9.383 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.0105, allocations: 0 / 228.6 MB, free: 9.383 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.01051, allocations: 0 / 228.6 MB, free: 9.383 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00103/0.01154, allocations: 0.7724 MB / 229.4 MB, free: 8.586 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.01159, allocations: 8.031 kB / 229.4 MB, free: 8.578 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.01169, allocations: 64.89 kB / 229.5 MB, free: 8.516 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.012, allocations: 236.4 kB / 229.7 MB, free: 8.254 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.788e-05/0.01204, allocations: 33.38 kB / 229.7 MB, free: 8.223 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.103e-05/0.0121, allocations: 44.38 kB / 229.8 MB, free: 8.18 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00044/0.01254, allocations: 347.5 kB / 230.1 MB, free: 7.832 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.01256, allocations: 8.125 kB / 230.1 MB, free: 7.824 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.033e-05/0.01259, allocations: 16.38 kB / 230.1 MB, free: 7.809 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.0126, allocations: 11.94 kB / 230.1 MB, free: 7.797 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002651/0.01286, allocations: 206.7 kB / 230.3 MB, free: 7.594 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009881/0.01385, allocations: 0.6591 MB / 231 MB, free: 6.922 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/0.0142, allocations: 236.5 kB / 231.2 MB, free: 6.684 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.01436, allocations: 126.3 kB / 231.4 MB, free: 6.559 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.406e-05/0.0144, allocations: 8.5 kB / 231.4 MB, free: 6.551 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.524e-05/0.01445, allocations: 43.06 kB / 231.4 MB, free: 6.496 MB / 234.7 MB Notification: Performance of pre-optimization done (n=50): time 1.342e-06/0.01445, allocations: 0 / 231.4 MB, free: 6.496 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.002151/0.0166, allocations: 1.493 MB / 232.9 MB, free: 4.934 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.038e-05/0.01663, allocations: 59.91 kB / 233 MB, free: 4.863 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001438/0.01678, allocations: 248.9 kB / 233.2 MB, free: 4.605 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.01681, allocations: 41.7 kB / 233.2 MB, free: 4.559 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.267e-05/0.01687, allocations: 169.9 kB / 233.4 MB, free: 4.391 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.01698, allocations: 210.3 kB / 233.6 MB, free: 4.184 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.01708, allocations: 110.2 kB / 233.7 MB, free: 4.066 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002016/0.01728, allocations: 350.7 kB / 234.1 MB, free: 3.715 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.0174, allocations: 97.27 kB / 234.2 MB, free: 3.621 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.01754, allocations: 148.8 kB / 234.3 MB, free: 3.469 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/0.01776, allocations: 250 kB / 234.6 MB, free: 3.223 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.01776, allocations: 0 / 234.6 MB, free: 3.223 MB / 234.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0005104/0.01827, allocations: 442.6 kB / 235 MB, free: 2.777 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.01829, allocations: 4 kB / 235 MB, free: 2.773 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.01829, allocations: 0 / 235 MB, free: 2.773 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004495/0.01874, allocations: 401.3 kB / 235.4 MB, free: 2.375 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000197/0.01894, allocations: 103.8 kB / 235.5 MB, free: 2.273 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007099/0.01965, allocations: 1.198 MB / 236.7 MB, free: 1.023 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001647/0.01981, allocations: 52 kB / 236.7 MB, free: 0.9727 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.569e-05/0.01984, allocations: 19.98 kB / 236.7 MB, free: 0.9531 MB / 234.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 (57): * Single equations (assignments): 55 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.01996, allocations: 144.5 kB / 236.9 MB, free: 0.8008 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.642e-05/0.02001, allocations: 47.89 kB / 236.9 MB, free: 0.7539 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.188e-05/0.02008, allocations: 51.62 kB / 237 MB, free: 0.7031 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.02008, allocations: 15.92 kB / 237 MB, free: 0.6875 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.02008, allocations: 3.984 kB / 237 MB, free: 0.6836 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.02009, allocations: 0 / 237 MB, free: 0.6836 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/0.02141, allocations: 0.8069 MB / 237.8 MB, free: 15.83 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.02141, allocations: 0 / 237.8 MB, free: 15.83 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000209/0.02162, allocations: 99.88 kB / 237.9 MB, free: 15.73 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.908e-05/0.02172, allocations: 63.67 kB / 238 MB, free: 15.67 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003963/0.02212, allocations: 397.6 kB / 238.4 MB, free: 15.27 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.659e-05/0.02215, allocations: 23.98 kB / 238.4 MB, free: 15.25 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005456/0.02269, allocations: 1.198 MB / 239.6 MB, free: 14 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.0227, allocations: 11.92 kB / 239.6 MB, free: 13.99 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006751/0.02337, allocations: 0.6436 MB / 240.2 MB, free: 13.31 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.031e-05/0.02342, allocations: 20 kB / 240.3 MB, free: 13.29 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.02359, allocations: 39.95 kB / 240.3 MB, free: 13.25 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.02372, allocations: 96.25 kB / 240.4 MB, free: 13.16 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.02375, allocations: 19.97 kB / 240.4 MB, free: 13.14 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.903e-05/0.02381, allocations: 86.75 kB / 240.5 MB, free: 13.05 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02381, allocations: 4 kB / 240.5 MB, free: 13.05 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002585/0.02407, allocations: 132 kB / 240.6 MB, free: 12.92 MB / 250.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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001949/0.02427, allocations: 128.2 kB / 240.8 MB, free: 12.79 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004481/0.02472, allocations: 363.9 kB / 241.1 MB, free: 12.43 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/0.02473, allocations: 4 kB / 241.1 MB, free: 12.43 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002506/0.02498, allocations: 238.4 kB / 241.3 MB, free: 12.19 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004624/0.02544, allocations: 0.594 MB / 241.9 MB, free: 11.48 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004115/0.02955, allocations: 1.083 MB / 243 MB, free: 10.36 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.568e-05/0.02963, allocations: 122.4 kB / 243.1 MB, free: 10.21 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.662e-05/0.02973, allocations: 35.28 kB / 243.2 MB, free: 10.17 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001599/0.02989, allocations: 123.3 kB / 243.3 MB, free: 10.05 MB / 250.7 MB Notification: Performance of SimCode: time 1.302e-06/0.02989, allocations: 0 / 243.3 MB, free: 10.05 MB / 250.7 MB Notification: Performance of Templates: time 0.01091/0.0408, allocations: 9.474 MB / 252.8 MB, free: 0.6016 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.889653236605227]