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.0009122/0.0009122, allocations: 76.81 kB / 22.28 MB, free: 2.207 MB / 18.57 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.001507/0.001507, allocations: 163.3 kB / 25.7 MB, free: 8.438 MB / 18.57 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.9037/0.9037, allocations: 158.6 MB / 187.6 MB, free: 2.785 MB / 170.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.302e-06/1.302e-06, allocations: 0 / 251.5 MB, free: 7.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.683e-05/1.813e-05, allocations: 2.312 kB / 251.5 MB, free: 7.285 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003174/0.003192, allocations: 3.013 MB / 254.5 MB, free: 4.25 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.004803, allocations: 0.9861 MB / 255.5 MB, free: 3.254 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001608/0.004963, allocations: 11.94 kB / 255.5 MB, free: 3.242 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002055/0.005169, allocations: 67.31 kB / 255.6 MB, free: 3.176 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00022/0.005389, allocations: 142.8 kB / 255.7 MB, free: 3.035 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000494/0.005883, allocations: 235.5 kB / 256 MB, free: 2.805 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004711/0.006354, allocations: 0.6547 MB / 256.6 MB, free: 2.148 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.006502, allocations: 85.34 kB / 256.7 MB, free: 2.059 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004143/0.006916, allocations: 395.2 kB / 257.1 MB, free: 1.672 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002757/0.007192, allocations: 247.4 kB / 257.3 MB, free: 1.426 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.715e-05/0.007249, allocations: 52 kB / 257.4 MB, free: 1.375 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001526/0.007401, allocations: 91.95 kB / 257.5 MB, free: 1.285 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.007508, allocations: 127.5 kB / 257.6 MB, free: 1.16 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.007633, allocations: 183.6 kB / 257.8 MB, free: 0.9805 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004278/0.008061, allocations: 474.4 kB / 258.2 MB, free: 0.5156 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.008063, allocations: 0 / 258.2 MB, free: 0.5156 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.22e-07/0.008063, allocations: 0 / 258.2 MB, free: 0.5156 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.008067, allocations: 0 / 258.2 MB, free: 0.5156 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.000737/0.008804, allocations: 0.675 MB / 258.9 MB, free: 15.82 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.938e-05/0.008834, allocations: 15.98 kB / 258.9 MB, free: 15.8 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.066e-05/0.008914, allocations: 64.88 kB / 259 MB, free: 15.74 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.009156, allocations: 232.5 kB / 259.2 MB, free: 15.48 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.703e-05/0.009183, allocations: 29.38 kB / 259.3 MB, free: 15.46 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.374e-05/0.009237, allocations: 40.36 kB / 259.3 MB, free: 15.42 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003773/0.009615, allocations: 347.5 kB / 259.6 MB, free: 15.07 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.009633, allocations: 12.14 kB / 259.6 MB, free: 15.06 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.914e-05/0.009662, allocations: 20.38 kB / 259.7 MB, free: 15.04 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.009671, allocations: 15.88 kB / 259.7 MB, free: 15.02 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002474/0.009919, allocations: 194.8 kB / 259.9 MB, free: 14.83 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.01093, allocations: 0.6552 MB / 260.5 MB, free: 14.16 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003335/0.01127, allocations: 240.6 kB / 260.8 MB, free: 13.92 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001545/0.01142, allocations: 122.3 kB / 260.9 MB, free: 13.8 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.232e-05/0.01145, allocations: 12.44 kB / 260.9 MB, free: 13.79 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.01148, allocations: 43.05 kB / 260.9 MB, free: 13.73 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 1.593e-06/0.01148, allocations: 0 / 260.9 MB, free: 13.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.002274/0.01375, allocations: 1.344 MB / 262.3 MB, free: 12.34 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.01378, allocations: 59.91 kB / 262.3 MB, free: 12.27 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.01391, allocations: 244.9 kB / 262.6 MB, free: 12.02 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.476e-05/0.01395, allocations: 41.69 kB / 262.6 MB, free: 11.97 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.563e-05/0.01401, allocations: 181.9 kB / 262.8 MB, free: 11.79 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.99e-05/0.01411, allocations: 206.3 kB / 263 MB, free: 11.58 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.01422, allocations: 102.2 kB / 263.1 MB, free: 11.48 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.332e-05/0.0143, allocations: 354.7 kB / 263.4 MB, free: 11.12 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.01443, allocations: 101.3 kB / 263.5 MB, free: 11.02 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.01457, allocations: 148.8 kB / 263.7 MB, free: 10.87 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.01478, allocations: 230 kB / 263.9 MB, free: 10.64 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.01478, allocations: 7.938 kB / 263.9 MB, free: 10.63 MB / 250.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0005102/0.01529, allocations: 438.7 kB / 264.3 MB, free: 10.19 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.0153, allocations: 4 kB / 264.3 MB, free: 10.18 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.01531, allocations: 32 / 264.3 MB, free: 10.18 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004336/0.01574, allocations: 409.3 kB / 264.7 MB, free: 9.777 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001655/0.01591, allocations: 83.89 kB / 264.8 MB, free: 9.695 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005639/0.01647, allocations: 1.202 MB / 266 MB, free: 8.441 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.01664, allocations: 60 kB / 266.1 MB, free: 8.383 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.334e-05/0.01666, allocations: 12 kB / 266.1 MB, free: 8.371 MB / 250.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.0001244/0.01679, allocations: 140.5 kB / 266.2 MB, free: 8.223 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.481e-05/0.01684, allocations: 43.95 kB / 266.3 MB, free: 8.18 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.397e-05/0.0169, allocations: 59.61 kB / 266.3 MB, free: 8.121 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.0169, allocations: 11.94 kB / 266.4 MB, free: 8.109 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.0169, allocations: 4 kB / 266.4 MB, free: 8.105 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.01691, allocations: 0 / 266.4 MB, free: 8.105 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/0.01792, allocations: 0.8069 MB / 267.2 MB, free: 7.258 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.01792, allocations: 0 / 267.2 MB, free: 7.258 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001802/0.0181, allocations: 83.88 kB / 267.2 MB, free: 7.176 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003829/0.01849, allocations: 401.4 kB / 267.6 MB, free: 6.777 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.583e-05/0.01851, allocations: 19.97 kB / 267.7 MB, free: 6.758 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005138/0.01903, allocations: 1.198 MB / 268.9 MB, free: 5.508 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01903, allocations: 0 / 268.9 MB, free: 5.508 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009229/0.01995, allocations: 0.6552 MB / 269.5 MB, free: 4.812 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.02005, allocations: 55.73 kB / 269.6 MB, free: 4.758 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.674e-05/0.0201, allocations: 20 kB / 269.6 MB, free: 4.738 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.02025, allocations: 43.95 kB / 269.6 MB, free: 4.695 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.02036, allocations: 96.3 kB / 269.7 MB, free: 4.602 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/0.02039, allocations: 15.98 kB / 269.7 MB, free: 4.586 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.279e-05/0.02045, allocations: 82.77 kB / 269.8 MB, free: 4.5 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.02045, allocations: 4 kB / 269.8 MB, free: 4.496 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000253/0.0207, allocations: 128 kB / 269.9 MB, free: 4.371 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.0001602/0.02086, allocations: 136.2 kB / 270.1 MB, free: 4.23 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004326/0.02129, allocations: 347.5 kB / 270.4 MB, free: 3.895 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.0213, allocations: 0 / 270.4 MB, free: 3.895 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002232/0.02152, allocations: 205.4 kB / 270.6 MB, free: 3.688 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.02181, allocations: 101 kB / 270.7 MB, free: 3.59 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.0234, allocations: 1.08 MB / 271.8 MB, free: 2.465 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.445e-05/0.02347, allocations: 118.4 kB / 271.9 MB, free: 2.332 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.562e-05/0.02356, allocations: 39.22 kB / 272 MB, free: 2.289 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.02371, allocations: 123.3 kB / 272.1 MB, free: 2.168 MB / 250.7 MB Notification: Performance of SimCode: time 8.62e-07/0.02371, allocations: 0 / 272.1 MB, free: 2.168 MB / 250.7 MB Notification: Performance of Templates: time 0.009946/0.03365, allocations: 9.259 MB / 281.3 MB, free: 8.938 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.816697323229164]