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.001198/0.001198, allocations: 84.67 kB / 21.43 MB, free: 3.105 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.00138/0.00138, allocations: 144 kB / 24.68 MB, free: 9.445 MB / 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.854/0.854, allocations: 173.4 MB / 201.2 MB, free: 9.414 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.273e-06/1.273e-06, allocations: 3.938 kB / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.612e-05/1.739e-05, allocations: 2.281 kB / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002633/0.00265, allocations: 2.825 MB / 322.5 MB, free: 3.004 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.003915, allocations: 0.9114 MB / 323.4 MB, free: 2.086 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001572/0.004073, allocations: 7.938 kB / 323.4 MB, free: 2.078 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001963/0.004269, allocations: 59.38 kB / 323.5 MB, free: 2.02 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001876/0.004456, allocations: 154.6 kB / 323.6 MB, free: 1.867 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004402/0.004897, allocations: 227.5 kB / 323.9 MB, free: 1.645 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004972/0.005394, allocations: 0.6508 MB / 324.5 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.005546, allocations: 88.69 kB / 324.6 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003407/0.005887, allocations: 387.2 kB / 325 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002304/0.006117, allocations: 247.4 kB / 325.2 MB, free: 284 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.801e-05/0.006165, allocations: 48 kB / 325.3 MB, free: 236 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001231/0.006288, allocations: 103.9 kB / 325.4 MB, free: 132 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.727e-05/0.006375, allocations: 127.6 kB / 325.5 MB, free: 4 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001196/0.006495, allocations: 179.5 kB / 325.7 MB, free: 15.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004897/0.006985, allocations: 0.6426 MB / 326.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.006987, allocations: 0 / 326.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.42e-07/0.006987, allocations: 0 / 326.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.006994, allocations: 0 / 326.3 MB, free: 15.18 MB / 298.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.0008372/0.007831, allocations: 0.7154 MB / 327 MB, free: 14.44 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.007862, allocations: 8.922 kB / 327 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.5e-05/0.007937, allocations: 56.59 kB / 327.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003001/0.008237, allocations: 268.5 kB / 327.4 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.522e-05/0.008263, allocations: 29.38 kB / 327.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.62e-05/0.008319, allocations: 48.31 kB / 327.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006103/0.008929, allocations: 474.9 kB / 327.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.008944, allocations: 192 / 327.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.054e-05/0.008975, allocations: 20.31 kB / 327.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.008985, allocations: 15.92 kB / 327.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005449/0.009529, allocations: 475.7 kB / 328.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.01068, allocations: 0.9046 MB / 329.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005904/0.01127, allocations: 375.4 kB / 329.7 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003138/0.01158, allocations: 242.2 kB / 329.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.01161, allocations: 12.5 kB / 329.9 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.794e-05/0.01163, allocations: 35.06 kB / 329.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 1.492e-06/0.01163, allocations: 0 / 329.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.00286/0.01449, allocations: 2.045 MB / 332 MB, free: 9.332 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.238e-05/0.01452, allocations: 59.91 kB / 332.1 MB, free: 9.262 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.0147, allocations: 265.8 kB / 332.3 MB, free: 8.992 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/0.01473, allocations: 41.69 kB / 332.4 MB, free: 8.945 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.144e-05/0.01482, allocations: 193.5 kB / 332.5 MB, free: 8.754 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.01493, allocations: 202.3 kB / 332.7 MB, free: 8.555 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.01504, allocations: 110.3 kB / 332.8 MB, free: 8.441 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.739e-05/0.01513, allocations: 346.8 kB / 333.2 MB, free: 8.094 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002899/0.01542, allocations: 241.2 kB / 333.4 MB, free: 7.859 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002984/0.01572, allocations: 288.7 kB / 333.7 MB, free: 7.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000469/0.01618, allocations: 418 kB / 334.1 MB, free: 7.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.01619, allocations: 0 / 334.1 MB, free: 7.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001047/0.01723, allocations: 0.7875 MB / 334.9 MB, free: 6.359 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.01725, allocations: 4 kB / 334.9 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.01725, allocations: 0 / 334.9 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005492/0.0178, allocations: 0.4934 MB / 335.4 MB, free: 5.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001719/0.01798, allocations: 87.89 kB / 335.5 MB, free: 5.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008006/0.01878, allocations: 1.413 MB / 336.9 MB, free: 4.305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002187/0.01899, allocations: 71.91 kB / 337 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.58e-05/0.01902, allocations: 20.06 kB / 337 MB, free: 4.215 MB / 298.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.0001423/0.01916, allocations: 165.8 kB / 337.1 MB, free: 4.043 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.733e-05/0.01921, allocations: 43.7 kB / 337.2 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.162e-05/0.01927, allocations: 55.61 kB / 337.2 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.01928, allocations: 8 kB / 337.3 MB, free: 3.938 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.01928, allocations: 0 / 337.3 MB, free: 3.938 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.01929, allocations: 3.984 kB / 337.3 MB, free: 3.934 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001548/0.02083, allocations: 1.297 MB / 338.6 MB, free: 2.582 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.02084, allocations: 0 / 338.6 MB, free: 2.582 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000186/0.02102, allocations: 88.05 kB / 338.6 MB, free: 2.496 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004523/0.02148, allocations: 485.3 kB / 339.1 MB, free: 2.016 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.88e-05/0.0215, allocations: 15.98 kB / 339.1 MB, free: 2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007412/0.02225, allocations: 1.374 MB / 340.5 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.02225, allocations: 0 / 340.5 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/0.02345, allocations: 1.092 MB / 341.6 MB, free: 15.44 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.02358, allocations: 87.75 kB / 341.7 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.118e-05/0.02363, allocations: 23.98 kB / 341.7 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001961/0.02383, allocations: 52.03 kB / 341.8 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.02397, allocations: 108.2 kB / 341.9 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-05/0.02399, allocations: 23.97 kB / 341.9 MB, free: 15.15 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001845/0.02418, allocations: 189.2 kB / 342.1 MB, free: 14.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02418, allocations: 3.938 kB / 342.1 MB, free: 14.96 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002945/0.02447, allocations: 135.9 kB / 342.2 MB, free: 14.82 MB / 314.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.0001693/0.02464, allocations: 143.1 kB / 342.3 MB, free: 14.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007421/0.02538, allocations: 0.5498 MB / 342.9 MB, free: 14.12 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.02538, allocations: 4 kB / 342.9 MB, free: 14.12 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003868/0.02577, allocations: 326.5 kB / 343.2 MB, free: 13.8 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.02613, allocations: 73.59 kB / 343.3 MB, free: 13.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.02812, allocations: 1.327 MB / 344.6 MB, free: 12.35 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001348/0.02825, allocations: 220.9 kB / 344.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.484e-05/0.02833, allocations: 40.48 kB / 344.9 MB, free: 12.08 MB / 314.7 MB Notification: Performance of SimCode: time 9.41e-07/0.02833, allocations: 4 kB / 344.9 MB, free: 12.07 MB / 314.7 MB Notification: Performance of Templates: time 0.007432/0.03576, allocations: 8.725 MB / 353.6 MB, free: 3.359 MB / 314.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.269707257859409]