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.001119/0.001119, allocations: 85.08 kB / 23 MB, free: 1.5 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.001216/0.001216, allocations: 173.2 kB / 26.39 MB, free: 7.98 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.9286/0.9286, allocations: 158.6 MB / 188.3 MB, free: 2.809 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.312e-06/1.312e-06, allocations: 3.938 kB / 252.2 MB, free: 7.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.936e-05/2.067e-05, allocations: 6.312 kB / 252.2 MB, free: 7.266 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003132/0.003152, allocations: 3.009 MB / 255.3 MB, free: 4.234 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.004652, allocations: 0.9591 MB / 256.2 MB, free: 3.266 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001977/0.00485, allocations: 7.938 kB / 256.2 MB, free: 3.258 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002116/0.005062, allocations: 67.38 kB / 256.3 MB, free: 3.191 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.005284, allocations: 146.7 kB / 256.4 MB, free: 3.047 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005133/0.005797, allocations: 231.5 kB / 256.7 MB, free: 2.82 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005312/0.006329, allocations: 0.6547 MB / 257.3 MB, free: 2.164 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.006498, allocations: 84.7 kB / 257.4 MB, free: 2.078 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000482/0.00698, allocations: 387.2 kB / 257.8 MB, free: 1.695 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002934/0.007274, allocations: 247.4 kB / 258 MB, free: 1.453 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.421e-05/0.007338, allocations: 48 kB / 258.1 MB, free: 1.406 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001601/0.007498, allocations: 103.9 kB / 258.2 MB, free: 1.305 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.843e-05/0.007597, allocations: 119.6 kB / 258.3 MB, free: 1.188 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.00773, allocations: 183.5 kB / 258.5 MB, free: 1.008 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004784/0.008208, allocations: 482.4 kB / 258.9 MB, free: 0.5352 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.008212, allocations: 0 / 258.9 MB, free: 0.5352 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.008213, allocations: 0 / 258.9 MB, free: 0.5352 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.008219, allocations: 0 / 258.9 MB, free: 0.5352 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.001145/0.009364, allocations: 0.7996 MB / 259.7 MB, free: 15.7 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.009397, allocations: 15.98 kB / 259.7 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.009504, allocations: 80.66 kB / 259.8 MB, free: 15.61 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002868/0.009791, allocations: 275.2 kB / 260.1 MB, free: 15.31 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.851e-05/0.009819, allocations: 33.38 kB / 260.1 MB, free: 15.28 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.69e-05/0.009876, allocations: 40.38 kB / 260.2 MB, free: 15.24 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000413/0.01029, allocations: 343.6 kB / 260.5 MB, free: 14.89 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.0103, allocations: 8.141 kB / 260.5 MB, free: 14.89 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.918e-05/0.01033, allocations: 16.38 kB / 260.5 MB, free: 14.87 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.01034, allocations: 11.94 kB / 260.5 MB, free: 14.86 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002935/0.01064, allocations: 242.7 kB / 260.8 MB, free: 14.62 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001101/0.01174, allocations: 0.8575 MB / 261.6 MB, free: 13.73 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003741/0.01211, allocations: 261 kB / 261.9 MB, free: 13.46 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001809/0.01229, allocations: 141.1 kB / 262 MB, free: 13.32 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.132e-05/0.01232, allocations: 8.5 kB / 262 MB, free: 13.32 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.01235, allocations: 45.83 kB / 262.1 MB, free: 13.26 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 1.744e-06/0.01235, allocations: 0 / 262.1 MB, free: 13.26 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.002108/0.01446, allocations: 1.427 MB / 263.5 MB, free: 11.77 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.05e-05/0.01449, allocations: 59.91 kB / 263.6 MB, free: 11.7 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.01465, allocations: 304.1 kB / 263.9 MB, free: 11.39 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.813e-05/0.01469, allocations: 45.69 kB / 263.9 MB, free: 11.34 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.01479, allocations: 236.2 kB / 264.1 MB, free: 11.1 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.0149, allocations: 206.3 kB / 264.3 MB, free: 10.89 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.01503, allocations: 115.9 kB / 264.4 MB, free: 10.77 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.01516, allocations: 0.5195 MB / 265 MB, free: 10.24 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.01531, allocations: 121.2 kB / 265.1 MB, free: 10.12 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/0.01547, allocations: 166.4 kB / 265.2 MB, free: 9.953 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002451/0.01571, allocations: 243.8 kB / 265.5 MB, free: 9.711 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.01572, allocations: 0 / 265.5 MB, free: 9.711 MB / 250.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0006879/0.0164, allocations: 0.543 MB / 266 MB, free: 9.152 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.01642, allocations: 8 kB / 266 MB, free: 9.145 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.01643, allocations: 0 / 266 MB, free: 9.145 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007243/0.01715, allocations: 415 kB / 266.4 MB, free: 8.73 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000185/0.01733, allocations: 91.83 kB / 266.5 MB, free: 8.641 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007693/0.0181, allocations: 1.764 MB / 268.3 MB, free: 6.812 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001964/0.0183, allocations: 60 kB / 268.4 MB, free: 6.754 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.01833, allocations: 12 kB / 268.4 MB, free: 6.742 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.0001455/0.01847, allocations: 196.4 kB / 268.6 MB, free: 6.539 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.394e-05/0.01855, allocations: 55.77 kB / 268.6 MB, free: 6.484 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.965e-05/0.01862, allocations: 67.55 kB / 268.7 MB, free: 6.418 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.01862, allocations: 4 kB / 268.7 MB, free: 6.414 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.01862, allocations: 4 kB / 268.7 MB, free: 6.41 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.01863, allocations: 0 / 268.7 MB, free: 6.41 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00131/0.01994, allocations: 1.055 MB / 269.7 MB, free: 5.293 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.01994, allocations: 0 / 269.7 MB, free: 5.293 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001943/0.02013, allocations: 83.89 kB / 269.8 MB, free: 5.211 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004249/0.02056, allocations: 411.2 kB / 270.2 MB, free: 4.801 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.965e-05/0.02059, allocations: 19.98 kB / 270.2 MB, free: 4.781 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007547/0.02134, allocations: 1.775 MB / 272 MB, free: 2.941 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.02135, allocations: 3.938 kB / 272 MB, free: 2.938 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008769/0.02222, allocations: 0.8105 MB / 272.8 MB, free: 2.078 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001351/0.02236, allocations: 91.67 kB / 272.9 MB, free: 1.988 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.674e-05/0.02242, allocations: 23.98 kB / 272.9 MB, free: 1.965 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.02259, allocations: 39.95 kB / 273 MB, free: 1.926 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.02272, allocations: 100.2 kB / 273.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.689e-05/0.02274, allocations: 19.97 kB / 273.1 MB, free: 1.809 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.14e-05/0.02283, allocations: 197.1 kB / 273.3 MB, free: 1.613 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02284, allocations: 0 / 273.3 MB, free: 1.613 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0006153/0.02345, allocations: 131.9 kB / 273.4 MB, free: 1.484 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.0001828/0.02363, allocations: 143.1 kB / 273.6 MB, free: 1.336 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005105/0.02414, allocations: 382.1 kB / 273.9 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.02415, allocations: 0 / 273.9 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002633/0.02441, allocations: 232.4 kB / 274.2 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003758/0.02478, allocations: 100.8 kB / 274.3 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.02667, allocations: 1.202 MB / 275.5 MB, free: 15.38 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.043e-05/0.02674, allocations: 118.4 kB / 275.6 MB, free: 15.24 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.02685, allocations: 35.28 kB / 275.6 MB, free: 15.21 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/0.02702, allocations: 146.2 kB / 275.8 MB, free: 15.06 MB / 266.7 MB Notification: Performance of SimCode: time 1.193e-06/0.02702, allocations: 0 / 275.8 MB, free: 15.06 MB / 266.7 MB Notification: Performance of Templates: time 0.01138/0.0384, allocations: 9.527 MB / 285.3 MB, free: 5.562 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.9608518350869417]