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.001078/0.001078, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001502/0.00258, allocations: 449.7 kB / 10.37 MB, free: 328 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.0009717/0.0009717, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009146/0.001886, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.9019/0.9019, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07693/0.9788, allocations: 53.65 MB / 243.3 MB, free: 15.58 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.493e-06/1.493e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.875e-05/2.024e-05, allocations: 2.312 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004366/0.004386, allocations: 3.2 MB / 247.7 MB, free: 11.1 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001695/0.006081, allocations: 1.153 MB / 248.9 MB, free: 9.938 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002164/0.006297, allocations: 7.938 kB / 248.9 MB, free: 9.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002106/0.006508, allocations: 87.16 kB / 249 MB, free: 9.844 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002968/0.006805, allocations: 194.5 kB / 249.2 MB, free: 9.652 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003154/0.00712, allocations: 211.6 kB / 249.4 MB, free: 9.445 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004547/0.007575, allocations: 0.6782 MB / 250 MB, free: 8.766 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.007722, allocations: 93.33 kB / 250.1 MB, free: 8.672 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004239/0.008146, allocations: 455.7 kB / 250.6 MB, free: 8.227 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002964/0.008442, allocations: 263.3 kB / 250.8 MB, free: 7.969 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.326e-05/0.008505, allocations: 48 kB / 250.9 MB, free: 7.922 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001597/0.008665, allocations: 107.9 kB / 251 MB, free: 7.816 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.008768, allocations: 103.7 kB / 251.1 MB, free: 7.715 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.008886, allocations: 143.8 kB / 251.2 MB, free: 7.574 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004041/0.00929, allocations: 446.4 kB / 251.7 MB, free: 7.137 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.131e-05/0.009301, allocations: 0 / 251.7 MB, free: 7.137 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.009302, allocations: 0 / 251.7 MB, free: 7.137 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.009314, allocations: 0 / 251.7 MB, free: 7.137 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.0008259/0.01014, allocations: 0.8227 MB / 252.5 MB, free: 6.285 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.01017, allocations: 11.97 kB / 252.5 MB, free: 6.273 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001774/0.01035, allocations: 154 kB / 252.6 MB, free: 6.105 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.01063, allocations: 258.2 kB / 252.9 MB, free: 5.824 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/0.01066, allocations: 33.38 kB / 252.9 MB, free: 5.793 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.055e-05/0.01071, allocations: 40.33 kB / 253 MB, free: 5.754 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003561/0.01106, allocations: 342.8 kB / 253.3 MB, free: 5.414 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.01108, allocations: 4.188 kB / 253.3 MB, free: 5.41 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.702e-05/0.0111, allocations: 12.38 kB / 253.3 MB, free: 5.398 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.455e-05/0.01112, allocations: 15.94 kB / 253.3 MB, free: 5.383 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002571/0.01137, allocations: 194.8 kB / 253.5 MB, free: 5.191 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002135/0.01351, allocations: 0.6772 MB / 254.2 MB, free: 4.496 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003993/0.01391, allocations: 252.6 kB / 254.5 MB, free: 4.234 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.01407, allocations: 126.3 kB / 254.6 MB, free: 4.109 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.292e-05/0.0141, allocations: 8.5 kB / 254.6 MB, free: 4.102 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.054e-05/0.01412, allocations: 43.06 kB / 254.6 MB, free: 4.051 MB / 250.7 MB Notification: Performance of pre-optimization done (n=55): time 2.395e-06/0.01413, allocations: 0 / 254.6 MB, free: 4.051 MB / 250.7 MB Notification: Performance of matching and sorting (n=61): time 0.001865/0.01599, allocations: 1.352 MB / 256 MB, free: 2.648 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.01602, allocations: 59.91 kB / 256 MB, free: 2.578 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001836/0.0162, allocations: 256.7 kB / 256.3 MB, free: 2.309 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.01623, allocations: 49.64 kB / 256.3 MB, free: 2.254 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.934e-05/0.0163, allocations: 170 kB / 256.5 MB, free: 2.082 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.01641, allocations: 218.2 kB / 256.7 MB, free: 1.867 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.01651, allocations: 110.2 kB / 256.8 MB, free: 1.754 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.01e-05/0.01659, allocations: 354.7 kB / 257.2 MB, free: 1.398 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.01671, allocations: 89.28 kB / 257.3 MB, free: 1.312 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.01683, allocations: 140.8 kB / 257.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00021/0.01704, allocations: 236.8 kB / 257.6 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.01704, allocations: 0 / 257.6 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0004787/0.01752, allocations: 422.8 kB / 258 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.01753, allocations: 7.938 kB / 258 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.01754, allocations: 0 / 258 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000363/0.0179, allocations: 269.5 kB / 258.3 MB, free: 240 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.01808, allocations: 99.84 kB / 258.4 MB, free: 140 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005797/0.01866, allocations: 1.194 MB / 259.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001682/0.01882, allocations: 51.94 kB / 259.7 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.085e-05/0.01884, allocations: 12 kB / 259.7 MB, free: 14.82 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.000113/0.01896, allocations: 152.6 kB / 259.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.851e-05/0.01902, allocations: 43.97 kB / 259.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.319e-05/0.01908, allocations: 59.69 kB / 259.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.01908, allocations: 8 kB / 259.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.01909, allocations: 3.938 kB / 259.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.01909, allocations: 3.984 kB / 259.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009746/0.02007, allocations: 0.7879 MB / 260.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.02007, allocations: 0 / 260.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001899/0.02026, allocations: 87.89 kB / 260.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.791e-05/0.02036, allocations: 67.83 kB / 260.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003037/0.02066, allocations: 265.4 kB / 261.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.558e-05/0.02069, allocations: 19.98 kB / 261.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005295/0.02122, allocations: 1.185 MB / 262.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.02122, allocations: 7.938 kB / 262.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005857/0.0218, allocations: 0.6224 MB / 263 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.284e-05/0.02186, allocations: 20 kB / 263 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.02201, allocations: 43.95 kB / 263 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.02213, allocations: 104.3 kB / 263.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.02216, allocations: 19.98 kB / 263.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.58e-05/0.02222, allocations: 96.56 kB / 263.2 MB, free: 11.08 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02222, allocations: 0 / 263.2 MB, free: 11.08 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002605/0.02248, allocations: 135.9 kB / 263.4 MB, free: 10.95 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.001023/0.0235, allocations: 0.5058 MB / 263.9 MB, free: 10.67 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004222/0.02393, allocations: 331.6 kB / 264.2 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.243e-05/0.02394, allocations: 8 kB / 264.2 MB, free: 10.33 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.02416, allocations: 214.2 kB / 264.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/0.02449, allocations: 163.9 kB / 264.6 MB, free: 9.965 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004069/0.02856, allocations: 1.107 MB / 265.7 MB, free: 8.809 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.789e-05/0.02863, allocations: 126.8 kB / 265.8 MB, free: 8.668 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.02873, allocations: 39.31 kB / 265.8 MB, free: 8.625 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001688/0.0289, allocations: 131.2 kB / 266 MB, free: 8.496 MB / 266.7 MB Notification: Performance of SimCode: time 8.31e-07/0.0289, allocations: 0 / 266 MB, free: 8.496 MB / 266.7 MB Notification: Performance of Templates: time 0.09976/0.1287, allocations: 9.497 MB / 275.5 MB, free: 23.69 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.783255652524531]