Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 83.89 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9373/0.9373, allocations: 173.4 MB / 201.1 MB, free: 9.355 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 3.938 kB / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.806e-05/1.945e-05, allocations: 6.25 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002975/0.002995, allocations: 3.031 MB / 271 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001849/0.004843, allocations: 0.9348 MB / 272 MB, free: 2.469 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001731/0.005016, allocations: 7.938 kB / 272 MB, free: 2.461 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001926/0.005209, allocations: 63.31 kB / 272 MB, free: 2.398 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001988/0.005408, allocations: 150.7 kB / 272.2 MB, free: 2.25 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004896/0.005897, allocations: 223.6 kB / 272.4 MB, free: 2.031 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004605/0.006358, allocations: 0.6586 MB / 273.1 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.006519, allocations: 80.7 kB / 273.1 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003565/0.006875, allocations: 391.2 kB / 273.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002503/0.007125, allocations: 247.4 kB / 273.8 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.523e-05/0.007181, allocations: 48 kB / 273.8 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.007318, allocations: 103.9 kB / 273.9 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.227e-05/0.00741, allocations: 127.5 kB / 274 MB, free: 400 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.007539, allocations: 175.6 kB / 274.2 MB, free: 224 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004324/0.007972, allocations: 486.5 kB / 274.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.007974, allocations: 0 / 274.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.007974, allocations: 0 / 274.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.007979, allocations: 0 / 274.7 MB, free: 15.74 MB / 266.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.0009306/0.00891, allocations: 0.7881 MB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.008943, allocations: 8.922 kB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.867e-05/0.009042, allocations: 84.61 kB / 275.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002701/0.009312, allocations: 279.2 kB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.862e-05/0.00934, allocations: 29.38 kB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.026e-05/0.009401, allocations: 48.33 kB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004814/0.009882, allocations: 399.5 kB / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.009896, allocations: 8.188 kB / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.842e-05/0.009925, allocations: 12.38 kB / 276.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.009935, allocations: 15.94 kB / 276.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004011/0.01034, allocations: 317.7 kB / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.01144, allocations: 0.9114 MB / 277.5 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004268/0.01186, allocations: 308.3 kB / 277.8 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002349/0.0121, allocations: 181.1 kB / 278 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.501e-05/0.01213, allocations: 8.5 kB / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.01215, allocations: 37.89 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.383e-06/0.01216, allocations: 0 / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.002342/0.0145, allocations: 1.684 MB / 279.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.744e-05/0.01452, allocations: 59.91 kB / 279.8 MB, free: 10.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.01472, allocations: 312.2 kB / 280.1 MB, free: 10.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.01475, allocations: 45.69 kB / 280.2 MB, free: 10.01 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.263e-05/0.01484, allocations: 236.2 kB / 280.4 MB, free: 9.773 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.01495, allocations: 206.3 kB / 280.6 MB, free: 9.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.01507, allocations: 111.9 kB / 280.7 MB, free: 9.453 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.01519, allocations: 0.5157 MB / 281.2 MB, free: 8.926 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/0.01541, allocations: 157.2 kB / 281.4 MB, free: 8.773 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.01564, allocations: 214.5 kB / 281.6 MB, free: 8.555 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003319/0.01597, allocations: 311.7 kB / 281.9 MB, free: 8.242 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.01597, allocations: 0 / 281.9 MB, free: 8.242 MB / 266.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009503/0.01692, allocations: 0.6329 MB / 282.5 MB, free: 7.594 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.01694, allocations: 4 kB / 282.5 MB, free: 7.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.01694, allocations: 8 kB / 282.5 MB, free: 7.582 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004991/0.01744, allocations: 435 kB / 283 MB, free: 7.148 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.01762, allocations: 87.89 kB / 283 MB, free: 7.062 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008423/0.01846, allocations: 1.822 MB / 284.9 MB, free: 5.176 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.01864, allocations: 56 kB / 284.9 MB, free: 5.121 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.613e-05/0.01867, allocations: 16 kB / 284.9 MB, free: 5.105 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 (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.0001249/0.0188, allocations: 192.2 kB / 285.1 MB, free: 4.906 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-05/0.01886, allocations: 63.7 kB / 285.2 MB, free: 4.844 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.602e-05/0.01892, allocations: 59.55 kB / 285.2 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.01892, allocations: 8 kB / 285.3 MB, free: 4.777 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.01893, allocations: 4 kB / 285.3 MB, free: 4.773 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.01893, allocations: 0 / 285.3 MB, free: 4.773 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/0.02033, allocations: 1.175 MB / 286.4 MB, free: 3.531 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.02033, allocations: 0 / 286.4 MB, free: 3.531 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.02052, allocations: 79.91 kB / 286.5 MB, free: 3.453 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004391/0.02096, allocations: 439.1 kB / 286.9 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.315e-05/0.02099, allocations: 15.98 kB / 287 MB, free: 3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007911/0.02178, allocations: 1.822 MB / 288.8 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.02178, allocations: 0 / 288.8 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.02294, allocations: 0.9314 MB / 289.7 MB, free: 140 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.02306, allocations: 91.73 kB / 289.8 MB, free: 48 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.043e-05/0.02311, allocations: 20 kB / 289.8 MB, free: 28 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1159/0.139, allocations: 38.69 kB / 289.9 MB, free: 30.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002423/0.1392, allocations: 98.06 kB / 290 MB, free: 30.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.042e-05/0.1393, allocations: 25.5 kB / 290 MB, free: 30.45 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001462/0.1394, allocations: 212.2 kB / 290.2 MB, free: 30.33 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1394, allocations: 0 / 290.2 MB, free: 30.33 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004503/0.1399, allocations: 131 kB / 290.3 MB, free: 30.33 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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001998/0.1401, allocations: 144.6 kB / 290.5 MB, free: 30.24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007882/0.1408, allocations: 455.3 kB / 290.9 MB, free: 30.22 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1409, allocations: 1.688 kB / 290.9 MB, free: 30.22 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003425/0.1412, allocations: 261.2 kB / 291.2 MB, free: 30.21 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003927/0.1416, allocations: 102 kB / 291.3 MB, free: 30.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.1437, allocations: 1.207 MB / 292.5 MB, free: 29.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.635e-05/0.1438, allocations: 118.6 kB / 292.6 MB, free: 29.61 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001122/0.1439, allocations: 42.47 kB / 292.6 MB, free: 29.61 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.804e-05/0.144, allocations: 37.64 kB / 292.7 MB, free: 29.6 MB / 266.7 MB Notification: Performance of SimCode: time 8.52e-07/0.144, allocations: 0 / 292.7 MB, free: 29.6 MB / 266.7 MB Notification: Performance of Templates: time 0.01133/0.1553, allocations: 8.53 MB / 301.2 MB, free: 27.11 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 3.072026849258691]