Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001885/0.001885, allocations: 103.5 kB / 20.97 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001986/0.001986, allocations: 156.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.548/1.548, allocations: 177 MB / 204.5 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 3.938 kB / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.8e-05/2.945e-05, allocations: 2.312 kB / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005438/0.005468, allocations: 3.137 MB / 275.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002332/0.007799, allocations: 1.095 MB / 276.4 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002029/0.008002, allocations: 15.94 kB / 276.4 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003551/0.008357, allocations: 83.17 kB / 276.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004838/0.008841, allocations: 190.5 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005167/0.009358, allocations: 211.6 kB / 276.9 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00115/0.01051, allocations: 0.6898 MB / 277.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000235/0.01074, allocations: 92.62 kB / 277.7 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006924/0.01144, allocations: 419.1 kB / 278.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004561/0.01189, allocations: 259.4 kB / 278.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.012, allocations: 52 kB / 278.4 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002667/0.01227, allocations: 111.9 kB / 278.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002099/0.01248, allocations: 135.5 kB / 278.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002635/0.01274, allocations: 195.5 kB / 278.8 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00103/0.01377, allocations: 0.6892 MB / 279.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.614e-05/0.01379, allocations: 4 kB / 279.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.01379, allocations: 0 / 279.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.0138, allocations: 0 / 279.5 MB, free: 10.44 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001724/0.01552, allocations: 0.8616 MB / 280.4 MB, free: 9.539 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.01556, allocations: 11.98 kB / 280.4 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003151/0.01588, allocations: 96.56 kB / 280.5 MB, free: 9.434 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000546/0.01642, allocations: 292.3 kB / 280.8 MB, free: 9.117 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.106e-05/0.01648, allocations: 41.31 kB / 280.8 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.01658, allocations: 48.31 kB / 280.9 MB, free: 9.027 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009753/0.01755, allocations: 450.9 kB / 281.3 MB, free: 8.582 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.49e-05/0.01758, allocations: 8.188 kB / 281.3 MB, free: 8.574 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.474e-05/0.01763, allocations: 20.36 kB / 281.3 MB, free: 8.555 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/0.01765, allocations: 11.94 kB / 281.4 MB, free: 8.543 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.01873, allocations: 439.7 kB / 281.8 MB, free: 8.113 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002298/0.02102, allocations: 1.031 MB / 282.8 MB, free: 7.039 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009516/0.02198, allocations: 391.9 kB / 283.2 MB, free: 6.645 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005508/0.02253, allocations: 229 kB / 283.4 MB, free: 6.418 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.463e-05/0.02258, allocations: 12.5 kB / 283.4 MB, free: 6.406 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.265e-05/0.02262, allocations: 45.88 kB / 283.5 MB, free: 6.352 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 2.064e-06/0.02263, allocations: 0 / 283.5 MB, free: 6.352 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.005583/0.02821, allocations: 1.935 MB / 285.4 MB, free: 4.352 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/0.02827, allocations: 55.91 kB / 285.5 MB, free: 4.281 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004579/0.02872, allocations: 366.2 kB / 285.8 MB, free: 3.906 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.316e-05/0.0288, allocations: 49.69 kB / 285.9 MB, free: 3.852 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002133/0.02901, allocations: 240.3 kB / 286.1 MB, free: 3.609 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002475/0.02926, allocations: 226.2 kB / 286.3 MB, free: 3.387 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002475/0.0295, allocations: 128 kB / 286.5 MB, free: 3.254 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003409/0.02985, allocations: 0.5468 MB / 287 MB, free: 2.695 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005018/0.03035, allocations: 213.2 kB / 287.2 MB, free: 2.484 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005721/0.03092, allocations: 282.5 kB / 287.5 MB, free: 2.207 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008544/0.03177, allocations: 411.8 kB / 287.9 MB, free: 1.801 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.03178, allocations: 0 / 287.9 MB, free: 1.801 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001855/0.03363, allocations: 0.7578 MB / 288.6 MB, free: 1.027 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.03365, allocations: 4.031 kB / 288.7 MB, free: 1.023 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.03366, allocations: 4 kB / 288.7 MB, free: 1.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009753/0.03463, allocations: 379 kB / 289 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003423/0.03497, allocations: 79.91 kB / 289.1 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1111/0.146, allocations: 1.907 MB / 291 MB, free: 26.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005551/0.1466, allocations: 57.22 kB / 291.1 MB, free: 26.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.702e-05/0.1467, allocations: 22.19 kB / 291.1 MB, free: 26.28 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.0002798/0.1469, allocations: 213.9 kB / 291.3 MB, free: 26.12 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/0.1471, allocations: 62.38 kB / 291.4 MB, free: 26.12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000166/0.1473, allocations: 60.41 kB / 291.4 MB, free: 26.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.1473, allocations: 6.344 kB / 291.4 MB, free: 26.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.1473, allocations: 5.141 kB / 291.4 MB, free: 26.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.1473, allocations: 7.812 kB / 291.4 MB, free: 26.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002701/0.15, allocations: 1.35 MB / 292.8 MB, free: 25.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.15, allocations: 1.062 kB / 292.8 MB, free: 25.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003587/0.1503, allocations: 78.39 kB / 292.9 MB, free: 25.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007885/0.1511, allocations: 349.9 kB / 293.2 MB, free: 25.69 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.746e-05/0.1512, allocations: 22.78 kB / 293.2 MB, free: 25.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/0.1523, allocations: 1.871 MB / 295.1 MB, free: 23.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.1523, allocations: 4.016 kB / 295.1 MB, free: 23.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001923/0.1542, allocations: 1.101 MB / 296.2 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00026/0.1545, allocations: 92 kB / 296.3 MB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.1546, allocations: 20.48 kB / 296.3 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003919/0.155, allocations: 44.06 kB / 296.4 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002528/0.1552, allocations: 109.1 kB / 296.5 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.621e-05/0.1553, allocations: 27.92 kB / 296.5 MB, free: 23.38 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002335/0.1555, allocations: 243.4 kB / 296.7 MB, free: 23.22 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1555, allocations: 1.062 kB / 296.7 MB, free: 23.22 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005183/0.156, allocations: 134.8 kB / 296.9 MB, free: 23.2 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.002454/0.1585, allocations: 406.5 kB / 297.3 MB, free: 23.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001307/0.1598, allocations: 0.5599 MB / 297.8 MB, free: 22.93 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1598, allocations: 1.219 kB / 297.8 MB, free: 22.93 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006688/0.1605, allocations: 324.6 kB / 298.1 MB, free: 22.84 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007657/0.1612, allocations: 133.3 kB / 298.3 MB, free: 22.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00338/0.1646, allocations: 1.289 MB / 299.6 MB, free: 22.11 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002391/0.1649, allocations: 227.9 kB / 299.8 MB, free: 22.01 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001984/0.1651, allocations: 42 kB / 299.8 MB, free: 22 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001508/0.1652, allocations: 43.02 kB / 299.9 MB, free: 21.99 MB / 266.7 MB Notification: Performance of SimCode: time 1.533e-06/0.1652, allocations: 0 / 299.9 MB, free: 21.99 MB / 266.7 MB Notification: Performance of Templates: time 0.01379/0.179, allocations: 8.682 MB / 308.5 MB, free: 17.22 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.762348398915492]