Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009786/0.0009786, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001958/0.002937, allocations: 449.8 kB / 10.44 MB, free: 252 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.001173/0.001173, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001596/0.002769, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9312/0.9312, allocations: 177.2 MB / 189.8 MB, free: 5.266 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08097/1.012, allocations: 53.66 MB / 243.4 MB, free: 15.53 MB / 250.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.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_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.005e-05/2.183e-05, allocations: 2.312 kB / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005026/0.005048, allocations: 3.209 MB / 247.9 MB, free: 11.02 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00234/0.007388, allocations: 1.149 MB / 249.1 MB, free: 9.863 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002553/0.007643, allocations: 7.938 kB / 249.1 MB, free: 9.855 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003077/0.007951, allocations: 87.17 kB / 249.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004731/0.008424, allocations: 202.4 kB / 249.3 MB, free: 9.57 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004868/0.008911, allocations: 211.5 kB / 249.6 MB, free: 9.363 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007224/0.009633, allocations: 0.6742 MB / 250.2 MB, free: 8.684 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002033/0.009837, allocations: 101.3 kB / 250.3 MB, free: 8.582 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006746/0.01051, allocations: 455.7 kB / 250.8 MB, free: 8.137 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003676/0.01088, allocations: 259.4 kB / 251 MB, free: 7.883 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.714e-05/0.01097, allocations: 52 kB / 251.1 MB, free: 7.832 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000254/0.01122, allocations: 111.9 kB / 251.2 MB, free: 7.723 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.01137, allocations: 91.69 kB / 251.3 MB, free: 7.633 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001794/0.01155, allocations: 143.7 kB / 251.4 MB, free: 7.492 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006276/0.01218, allocations: 454.4 kB / 251.9 MB, free: 7.047 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.327e-05/0.01219, allocations: 0 / 251.9 MB, free: 7.047 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.01219, allocations: 3.938 kB / 251.9 MB, free: 7.043 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.01221, allocations: 0 / 251.9 MB, free: 7.043 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.001287/0.01349, allocations: 0.8149 MB / 252.7 MB, free: 6.199 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.01353, allocations: 12.02 kB / 252.7 MB, free: 6.188 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002822/0.01381, allocations: 158 kB / 252.8 MB, free: 6.016 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004455/0.01426, allocations: 258.2 kB / 253.1 MB, free: 5.734 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.541e-05/0.0143, allocations: 33.38 kB / 253.1 MB, free: 5.703 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.964e-05/0.01439, allocations: 48.33 kB / 253.2 MB, free: 5.656 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005954/0.01499, allocations: 338.8 kB / 253.5 MB, free: 5.32 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.01501, allocations: 192 / 253.5 MB, free: 5.32 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.294e-05/0.01505, allocations: 16.38 kB / 253.5 MB, free: 5.305 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.01507, allocations: 15.94 kB / 253.5 MB, free: 5.289 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004225/0.01549, allocations: 198.8 kB / 253.7 MB, free: 5.094 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00146/0.01695, allocations: 0.6694 MB / 254.4 MB, free: 4.402 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005593/0.01751, allocations: 256.6 kB / 254.7 MB, free: 4.141 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002479/0.01776, allocations: 122.3 kB / 254.8 MB, free: 4.02 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.303e-05/0.0178, allocations: 12.44 kB / 254.8 MB, free: 4.008 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.01783, allocations: 39.06 kB / 254.8 MB, free: 3.961 MB / 250.7 MB Notification: Performance of pre-optimization done (n=55): time 2.364e-06/0.01783, allocations: 0 / 254.8 MB, free: 3.961 MB / 250.7 MB Notification: Performance of matching and sorting (n=61): time 0.00311/0.02094, allocations: 1.399 MB / 256.2 MB, free: 2.508 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.714e-05/0.02098, allocations: 59.91 kB / 256.3 MB, free: 2.438 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000235/0.02122, allocations: 252.7 kB / 256.5 MB, free: 2.176 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.617e-05/0.02127, allocations: 45.69 kB / 256.6 MB, free: 2.125 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.545e-05/0.02137, allocations: 170 kB / 256.7 MB, free: 1.957 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.02153, allocations: 222.2 kB / 257 MB, free: 1.738 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/0.0217, allocations: 106.2 kB / 257.1 MB, free: 1.629 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.02182, allocations: 358.7 kB / 257.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.02202, allocations: 89.27 kB / 257.5 MB, free: 1.184 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.02223, allocations: 136.8 kB / 257.6 MB, free: 1.043 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003502/0.02258, allocations: 240.7 kB / 257.9 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.02259, allocations: 0 / 257.9 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007913/0.02338, allocations: 418.7 kB / 258.3 MB, free: 392 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.0234, allocations: 11.94 kB / 258.3 MB, free: 380 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.0234, allocations: 0 / 258.3 MB, free: 380 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005871/0.02399, allocations: 269.5 kB / 258.5 MB, free: 104 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003084/0.0243, allocations: 99.83 kB / 258.6 MB, free: 4 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009273/0.02523, allocations: 1.186 MB / 259.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002982/0.02553, allocations: 56 kB / 259.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.042e-05/0.02557, allocations: 15.98 kB / 259.9 MB, free: 14.69 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.0001641/0.02573, allocations: 144.5 kB / 260 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.02583, allocations: 47.95 kB / 260.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.793e-05/0.02593, allocations: 59.69 kB / 260.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.02593, allocations: 4 kB / 260.2 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.02594, allocations: 7.938 kB / 260.2 MB, free: 14.42 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.02595, allocations: 4 kB / 260.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001674/0.02762, allocations: 0.7919 MB / 261 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.02762, allocations: 0 / 261 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003416/0.02797, allocations: 91.89 kB / 261 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001725/0.02814, allocations: 63.66 kB / 261.1 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005298/0.02867, allocations: 265.4 kB / 261.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.595e-05/0.02871, allocations: 23.97 kB / 261.4 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006631/0.02938, allocations: 1.196 MB / 262.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.02938, allocations: 7.938 kB / 262.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006343/0.03001, allocations: 0.6184 MB / 263.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.357e-05/0.03007, allocations: 20.06 kB / 263.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001578/0.03023, allocations: 43.95 kB / 263.3 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.03035, allocations: 104.3 kB / 263.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.03038, allocations: 19.97 kB / 263.4 MB, free: 11.03 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.12e-05/0.03045, allocations: 96.56 kB / 263.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03045, allocations: 0 / 263.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002587/0.03071, allocations: 128 kB / 263.6 MB, free: 10.8 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.0009944/0.0317, allocations: 0.5062 MB / 264.1 MB, free: 10.53 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000446/0.03215, allocations: 344.2 kB / 264.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.364e-05/0.03216, allocations: 8 kB / 264.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002601/0.03242, allocations: 231.2 kB / 264.7 MB, free: 9.957 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005135/0.03293, allocations: 0.6918 MB / 265.4 MB, free: 9.141 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004218/0.03715, allocations: 1.111 MB / 266.5 MB, free: 7.988 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.455e-05/0.03723, allocations: 118.8 kB / 266.6 MB, free: 7.855 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001243/0.03735, allocations: 39.3 kB / 266.7 MB, free: 7.812 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001928/0.03754, allocations: 131.3 kB / 266.8 MB, free: 7.684 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.03754, allocations: 0 / 266.8 MB, free: 7.684 MB / 266.7 MB Notification: Performance of Templates: time 0.1073/0.1449, allocations: 9.499 MB / 276.3 MB, free: 21.55 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.932339915074408]