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.001045/0.001045, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.001161/0.001161, allocations: 164.2 kB / 24.91 MB, free: 8.258 MB / 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 0.9604/0.9604, allocations: 177 MB / 205.2 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] 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.383e-06/1.383e-06, allocations: 0 / 273.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.758e-05/1.897e-05, allocations: 6.312 kB / 273.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003294/0.003313, allocations: 3.19 MB / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001532/0.004845, allocations: 1.134 MB / 277.7 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.005, allocations: 7.938 kB / 277.7 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002769/0.005277, allocations: 87.12 kB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002974/0.005574, allocations: 202.5 kB / 278 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003458/0.00592, allocations: 207.6 kB / 278.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004757/0.006396, allocations: 0.6821 MB / 278.9 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.006544, allocations: 97.27 kB / 279 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004095/0.006954, allocations: 419.2 kB / 279.4 MB, free: 11.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002645/0.007218, allocations: 259.4 kB / 279.7 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.482e-05/0.007273, allocations: 52 kB / 279.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001509/0.007424, allocations: 103.9 kB / 279.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.00754, allocations: 147.5 kB / 280 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.007676, allocations: 195.5 kB / 280.2 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004421/0.008118, allocations: 0.4944 MB / 280.7 MB, free: 9.914 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.008121, allocations: 0 / 280.7 MB, free: 9.914 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.008122, allocations: 0 / 280.7 MB, free: 9.914 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.008127, allocations: 0 / 280.7 MB, free: 9.914 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.0007346/0.008862, allocations: 0.7176 MB / 281.4 MB, free: 9.172 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.065e-05/0.008892, allocations: 15.98 kB / 281.4 MB, free: 9.156 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.009043, allocations: 72.88 kB / 281.5 MB, free: 9.086 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002749/0.009318, allocations: 274.1 kB / 281.7 MB, free: 8.789 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.974e-05/0.009347, allocations: 29.38 kB / 281.8 MB, free: 8.758 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.172e-05/0.009399, allocations: 48.33 kB / 281.8 MB, free: 8.711 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003659/0.009765, allocations: 330.8 kB / 282.1 MB, free: 8.383 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.009779, allocations: 4.188 kB / 282.1 MB, free: 8.379 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.009805, allocations: 20.36 kB / 282.2 MB, free: 8.359 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.009813, allocations: 11.94 kB / 282.2 MB, free: 8.348 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002584/0.01007, allocations: 198.8 kB / 282.4 MB, free: 8.152 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009281/0.011, allocations: 0.6655 MB / 283 MB, free: 7.469 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003485/0.01135, allocations: 260.6 kB / 283.3 MB, free: 7.199 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.01151, allocations: 122.3 kB / 283.4 MB, free: 7.078 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.01154, allocations: 8.5 kB / 283.4 MB, free: 7.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.01156, allocations: 39.06 kB / 283.4 MB, free: 7.023 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 1.553e-06/0.01156, allocations: 3.938 kB / 283.4 MB, free: 7.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.001857/0.01342, allocations: 1.348 MB / 284.8 MB, free: 5.621 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.754e-05/0.01345, allocations: 55.91 kB / 284.8 MB, free: 5.555 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.01361, allocations: 264.6 kB / 285.1 MB, free: 5.281 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.01364, allocations: 41.7 kB / 285.1 MB, free: 5.234 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.65e-05/0.01371, allocations: 174 kB / 285.3 MB, free: 5.055 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.01381, allocations: 222.2 kB / 285.5 MB, free: 4.836 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.01392, allocations: 106.2 kB / 285.6 MB, free: 4.727 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.925e-05/0.01401, allocations: 358.7 kB / 286 MB, free: 4.367 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.01413, allocations: 89.28 kB / 286.1 MB, free: 4.281 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001298/0.01426, allocations: 140.8 kB / 286.2 MB, free: 4.137 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002229/0.01448, allocations: 232.8 kB / 286.4 MB, free: 3.906 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.01448, allocations: 0 / 286.4 MB, free: 3.906 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0005105/0.01499, allocations: 422.8 kB / 286.9 MB, free: 3.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.01501, allocations: 7.938 kB / 286.9 MB, free: 3.473 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.01501, allocations: 3.938 kB / 286.9 MB, free: 3.469 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003667/0.01538, allocations: 273.5 kB / 287.1 MB, free: 3.195 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001747/0.01555, allocations: 83.91 kB / 287.2 MB, free: 3.113 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005799/0.01613, allocations: 1.197 MB / 288.4 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.0163, allocations: 56 kB / 288.5 MB, free: 1.805 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.203e-05/0.01632, allocations: 12 kB / 288.5 MB, free: 1.793 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.0001173/0.01644, allocations: 144.6 kB / 288.6 MB, free: 1.641 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.764e-05/0.0165, allocations: 43.97 kB / 288.7 MB, free: 1.598 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.63e-05/0.01655, allocations: 59.69 kB / 288.7 MB, free: 1.539 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.01656, allocations: 7.938 kB / 288.7 MB, free: 1.531 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.01656, allocations: 7.938 kB / 288.7 MB, free: 1.523 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.01657, allocations: 3.984 kB / 288.7 MB, free: 1.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.01757, allocations: 0.7957 MB / 289.5 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.01757, allocations: 4 kB / 289.5 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001927/0.01777, allocations: 87.89 kB / 289.6 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003118/0.01808, allocations: 249.6 kB / 289.9 MB, free: 348 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.133e-05/0.01811, allocations: 23.92 kB / 289.9 MB, free: 324 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1015/0.1196, allocations: 1.185 MB / 291.1 MB, free: 24.37 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.1196, allocations: 5.562 kB / 291.1 MB, free: 24.37 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008566/0.1205, allocations: 0.6124 MB / 291.7 MB, free: 24.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.1206, allocations: 59.86 kB / 291.8 MB, free: 24.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.394e-05/0.1207, allocations: 21.59 kB / 291.8 MB, free: 24.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.1209, allocations: 43.91 kB / 291.8 MB, free: 24.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001717/0.1211, allocations: 102.1 kB / 291.9 MB, free: 24.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.692e-05/0.1211, allocations: 25.41 kB / 291.9 MB, free: 24.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001021/0.1212, allocations: 95.97 kB / 292 MB, free: 24.17 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1212, allocations: 0 / 292 MB, free: 24.17 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003756/0.1216, allocations: 125.4 kB / 292.2 MB, free: 24.17 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.001082/0.1227, allocations: 462.3 kB / 292.6 MB, free: 24.07 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006152/0.1233, allocations: 338.4 kB / 292.9 MB, free: 24.05 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/0.1233, allocations: 2.844 kB / 292.9 MB, free: 24.05 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003004/0.1236, allocations: 219.2 kB / 293.2 MB, free: 24.04 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003882/0.124, allocations: 121.2 kB / 293.3 MB, free: 24.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.126, allocations: 1.115 MB / 294.4 MB, free: 23.57 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.6e-05/0.1261, allocations: 123.8 kB / 294.5 MB, free: 23.5 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001621/0.1263, allocations: 42.08 kB / 294.6 MB, free: 23.49 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002285/0.1265, allocations: 136.7 kB / 294.7 MB, free: 23.44 MB / 266.7 MB Notification: Performance of SimCode: time 1.172e-06/0.1265, allocations: 0 / 294.7 MB, free: 23.44 MB / 266.7 MB Notification: Performance of Templates: time 0.01238/0.1389, allocations: 9.339 MB / 304 MB, free: 20.43 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 -s gbode -gbm=radauIIA3 -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","",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.864391800016165]