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.0009559/0.0009559, allocations: 88.86 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.001061/0.001061, allocations: 160.9 kB / 24.91 MB, free: 8.719 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.968/0.968, allocations: 177 MB / 205.2 MB, free: 5.039 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.502e-06/1.502e-06, allocations: 0 / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.298e-05/2.449e-05, allocations: 9.266 kB / 273.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003733/0.003758, allocations: 3.146 MB / 276.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001989/0.005746, allocations: 1.13 MB / 277.7 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002151/0.005961, allocations: 11.88 kB / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000295/0.006256, allocations: 83.23 kB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003839/0.00664, allocations: 198.4 kB / 277.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004052/0.007045, allocations: 215.6 kB / 278.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005736/0.007619, allocations: 0.6859 MB / 278.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.007796, allocations: 97.31 kB / 278.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006299/0.008426, allocations: 411.2 kB / 279.3 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003295/0.008755, allocations: 259.4 kB / 279.6 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.318e-05/0.008828, allocations: 55.94 kB / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002268/0.009055, allocations: 103.9 kB / 279.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001494/0.009205, allocations: 143.5 kB / 279.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001607/0.009365, allocations: 191.5 kB / 280.1 MB, free: 10.33 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006716/0.01004, allocations: 0.4982 MB / 280.6 MB, free: 9.832 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.01004, allocations: 4 kB / 280.6 MB, free: 9.828 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.01004, allocations: 0 / 280.6 MB, free: 9.828 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.01005, allocations: 0 / 280.6 MB, free: 9.828 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.001247/0.0113, allocations: 0.7215 MB / 281.3 MB, free: 9.082 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.01133, allocations: 15.98 kB / 281.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.01152, allocations: 72.88 kB / 281.4 MB, free: 8.996 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003638/0.01189, allocations: 262.2 kB / 281.6 MB, free: 8.711 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.845e-05/0.01193, allocations: 29.38 kB / 281.7 MB, free: 8.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.474e-05/0.01199, allocations: 48.33 kB / 281.7 MB, free: 8.633 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003783/0.01237, allocations: 330.8 kB / 282 MB, free: 8.305 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.01239, allocations: 16.12 kB / 282.1 MB, free: 8.289 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.882e-05/0.01242, allocations: 20.38 kB / 282.1 MB, free: 8.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.01242, allocations: 11.94 kB / 282.1 MB, free: 8.258 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002783/0.0127, allocations: 194.8 kB / 282.3 MB, free: 8.066 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/0.01373, allocations: 0.6616 MB / 282.9 MB, free: 7.383 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004146/0.01414, allocations: 268.5 kB / 283.2 MB, free: 7.105 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.01431, allocations: 118.3 kB / 283.3 MB, free: 6.988 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.614e-05/0.01435, allocations: 8.5 kB / 283.3 MB, free: 6.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/0.01437, allocations: 39.06 kB / 283.4 MB, free: 6.934 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 2.014e-06/0.01438, allocations: 0 / 283.4 MB, free: 6.934 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.002026/0.0164, allocations: 1.348 MB / 284.7 MB, free: 5.535 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.853e-05/0.01643, allocations: 59.84 kB / 284.8 MB, free: 5.465 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.01659, allocations: 256.7 kB / 285 MB, free: 5.199 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.075e-05/0.01663, allocations: 49.69 kB / 285.1 MB, free: 5.145 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.897e-05/0.01671, allocations: 170 kB / 285.2 MB, free: 4.969 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.01683, allocations: 222.2 kB / 285.4 MB, free: 4.75 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.01695, allocations: 106.2 kB / 285.6 MB, free: 4.641 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.649e-05/0.01704, allocations: 354.7 kB / 285.9 MB, free: 4.285 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/0.01718, allocations: 93.27 kB / 286 MB, free: 4.195 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001463/0.01733, allocations: 136.8 kB / 286.1 MB, free: 4.055 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/0.01758, allocations: 244.8 kB / 286.4 MB, free: 3.812 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.01758, allocations: 0 / 286.4 MB, free: 3.812 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0005318/0.01811, allocations: 422.6 kB / 286.8 MB, free: 3.387 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.01813, allocations: 7.938 kB / 286.8 MB, free: 3.379 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.01814, allocations: 0 / 286.8 MB, free: 3.379 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004131/0.01855, allocations: 273.5 kB / 287 MB, free: 3.105 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.01872, allocations: 83.89 kB / 287.1 MB, free: 3.023 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009135/0.01963, allocations: 1.194 MB / 288.3 MB, free: 1.773 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001782/0.01981, allocations: 51.94 kB / 288.4 MB, free: 1.723 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.01983, allocations: 12 kB / 288.4 MB, free: 1.711 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.0001239/0.01996, allocations: 144.5 kB / 288.5 MB, free: 1.559 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.162e-05/0.02002, allocations: 51.98 kB / 288.6 MB, free: 1.508 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.027e-05/0.02008, allocations: 59.69 kB / 288.6 MB, free: 1.449 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.02008, allocations: 8 kB / 288.6 MB, free: 1.441 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.02009, allocations: 7.875 kB / 288.7 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.0201, allocations: 3.984 kB / 288.7 MB, free: 1.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.02114, allocations: 0.7879 MB / 289.4 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-06/0.02115, allocations: 0 / 289.4 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001878/0.02133, allocations: 83.89 kB / 289.5 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003589/0.02169, allocations: 272.4 kB / 289.8 MB, free: 248 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.054e-05/0.02172, allocations: 23.92 kB / 289.8 MB, free: 224 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1169/0.1387, allocations: 1.177 MB / 291 MB, free: 24.32 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1387, allocations: 0.7969 kB / 291 MB, free: 24.32 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008104/0.1395, allocations: 0.6162 MB / 291.6 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.1396, allocations: 61.69 kB / 291.7 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.255e-05/0.1397, allocations: 20.91 kB / 291.7 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001903/0.1399, allocations: 43.19 kB / 291.7 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.14, allocations: 101.3 kB / 291.8 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.015e-05/0.1401, allocations: 23.53 kB / 291.9 MB, free: 24.13 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.927e-05/0.1402, allocations: 95.66 kB / 291.9 MB, free: 24.12 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1402, allocations: 0.625 kB / 291.9 MB, free: 24.12 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003431/0.1405, allocations: 130.1 kB / 292.1 MB, free: 24.12 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.0009688/0.1415, allocations: 464.2 kB / 292.5 MB, free: 24.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005618/0.1421, allocations: 339.1 kB / 292.9 MB, free: 24 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.1421, allocations: 2.625 kB / 292.9 MB, free: 24 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002718/0.1423, allocations: 211.8 kB / 293.1 MB, free: 23.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003646/0.1427, allocations: 130.7 kB / 293.2 MB, free: 23.97 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001877/0.1446, allocations: 1.12 MB / 294.3 MB, free: 23.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.816e-05/0.1447, allocations: 119.8 kB / 294.4 MB, free: 23.45 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001323/0.1448, allocations: 40.3 kB / 294.5 MB, free: 23.44 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000207/0.145, allocations: 125.3 kB / 294.6 MB, free: 23.39 MB / 266.7 MB Notification: Performance of SimCode: time 1.253e-06/0.145, allocations: 0 / 294.6 MB, free: 23.39 MB / 266.7 MB Notification: Performance of Templates: time 0.01165/0.1566, allocations: 9.341 MB / 303.9 MB, free: 20.41 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","",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.937689100857824]