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.0009561/0.0009561, allocations: 86.58 kB / 21.42 MB, free: 3.07 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.0009186/0.0009186, allocations: 166.5 kB / 24.82 MB, free: 8.328 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.933/0.933, allocations: 177 MB / 205.1 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.453e-06/1.453e-06, allocations: 0 / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.86e-05/2.005e-05, allocations: 6.25 kB / 273.3 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002995/0.003015, allocations: 3.135 MB / 276.5 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.004407, allocations: 1.103 MB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001574/0.004564, allocations: 7.938 kB / 277.6 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000266/0.00483, allocations: 83.17 kB / 277.7 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000304/0.005134, allocations: 198.5 kB / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003226/0.005457, allocations: 215.6 kB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004641/0.005921, allocations: 0.6781 MB / 278.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.006086, allocations: 92.67 kB / 278.8 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004432/0.006529, allocations: 415.2 kB / 279.2 MB, free: 11.28 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002691/0.006798, allocations: 263.3 kB / 279.5 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.885e-05/0.006857, allocations: 52 kB / 279.5 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001379/0.006995, allocations: 107.9 kB / 279.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.007108, allocations: 139.5 kB / 279.8 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.00723, allocations: 195.5 kB / 280 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004383/0.007668, allocations: 0.5021 MB / 280.5 MB, free: 10.03 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.824e-06/0.00767, allocations: 0 / 280.5 MB, free: 10.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.007671, allocations: 0 / 280.5 MB, free: 10.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.007676, allocations: 3.984 kB / 280.5 MB, free: 10.03 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.0008411/0.008517, allocations: 0.8462 MB / 281.3 MB, free: 9.145 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.008555, allocations: 11.98 kB / 281.3 MB, free: 9.133 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001784/0.008733, allocations: 100.5 kB / 281.4 MB, free: 9.035 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002896/0.009022, allocations: 304.9 kB / 281.7 MB, free: 8.703 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/0.009051, allocations: 33.38 kB / 281.8 MB, free: 8.668 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.109e-05/0.009102, allocations: 36.38 kB / 281.8 MB, free: 8.633 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000377/0.009479, allocations: 334.9 kB / 282.1 MB, free: 8.301 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.009496, allocations: 12.12 kB / 282.1 MB, free: 8.289 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.8e-05/0.009524, allocations: 12.38 kB / 282.2 MB, free: 8.277 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.009533, allocations: 15.94 kB / 282.2 MB, free: 8.262 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002908/0.009824, allocations: 238.7 kB / 282.4 MB, free: 8.027 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.01088, allocations: 0.8767 MB / 283.3 MB, free: 7.121 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003662/0.01124, allocations: 285 kB / 283.6 MB, free: 6.824 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001679/0.01141, allocations: 137.1 kB / 283.7 MB, free: 6.688 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.538e-05/0.01145, allocations: 12.5 kB / 283.7 MB, free: 6.676 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.01147, allocations: 41.89 kB / 283.7 MB, free: 6.625 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 1.934e-06/0.01147, allocations: 0 / 283.7 MB, free: 6.625 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.001971/0.01344, allocations: 1.42 MB / 285.2 MB, free: 5.141 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.703e-05/0.01347, allocations: 59.91 kB / 285.2 MB, free: 5.07 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001701/0.01364, allocations: 302.2 kB / 285.5 MB, free: 4.758 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.822e-05/0.01368, allocations: 45.69 kB / 285.6 MB, free: 4.707 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.543e-05/0.01377, allocations: 236.3 kB / 285.8 MB, free: 4.469 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.01389, allocations: 226.1 kB / 286 MB, free: 4.246 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/0.01401, allocations: 111.9 kB / 286.1 MB, free: 4.129 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.01414, allocations: 0.539 MB / 286.7 MB, free: 3.578 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001439/0.01428, allocations: 109.2 kB / 286.8 MB, free: 3.469 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.01444, allocations: 162.4 kB / 286.9 MB, free: 3.309 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/0.01468, allocations: 231.7 kB / 287.2 MB, free: 3.074 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.01468, allocations: 0 / 287.2 MB, free: 3.074 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0006242/0.0153, allocations: 0.5119 MB / 287.7 MB, free: 2.547 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.01532, allocations: 7.938 kB / 287.7 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.01532, allocations: 0 / 287.7 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004144/0.01574, allocations: 295.1 kB / 288 MB, free: 2.242 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.0159, allocations: 87.83 kB / 288 MB, free: 2.156 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007475/0.01665, allocations: 1.744 MB / 289.8 MB, free: 356 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001833/0.01683, allocations: 59.94 kB / 289.8 MB, free: 296 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.01686, allocations: 12 kB / 289.9 MB, free: 284 kB / 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.0001263/0.01698, allocations: 188.5 kB / 290 MB, free: 84 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.351e-05/0.01706, allocations: 63.72 kB / 290.1 MB, free: 20 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1076/0.1246, allocations: 56.02 kB / 290.2 MB, free: 25.59 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.1247, allocations: 4.938 kB / 290.2 MB, free: 25.59 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1247, allocations: 2.625 kB / 290.2 MB, free: 25.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.1247, allocations: 5.656 kB / 290.2 MB, free: 25.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001597/0.1263, allocations: 1.03 MB / 291.2 MB, free: 25.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.1263, allocations: 2.25 kB / 291.2 MB, free: 25.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002044/0.1265, allocations: 78.98 kB / 291.3 MB, free: 25.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004114/0.1269, allocations: 288.4 kB / 291.6 MB, free: 25.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.504e-05/0.1269, allocations: 20.03 kB / 291.6 MB, free: 25.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005983/0.1275, allocations: 1.749 MB / 293.3 MB, free: 23.64 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.1275, allocations: 8.156 kB / 293.3 MB, free: 23.64 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008395/0.1284, allocations: 0.7692 MB / 294.1 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/0.1285, allocations: 94.77 kB / 294.2 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.215e-05/0.1286, allocations: 22.67 kB / 294.2 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.1287, allocations: 42.31 kB / 294.3 MB, free: 23.35 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.1289, allocations: 110.4 kB / 294.4 MB, free: 23.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.897e-05/0.1289, allocations: 20.8 kB / 294.4 MB, free: 23.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001109/0.129, allocations: 210.1 kB / 294.6 MB, free: 23.22 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.129, allocations: 3.812 kB / 294.6 MB, free: 23.22 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003572/0.1294, allocations: 132.8 kB / 294.7 MB, free: 23.22 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.0007091/0.1301, allocations: 364.8 kB / 295.1 MB, free: 23.13 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005568/0.1306, allocations: 374.4 kB / 295.5 MB, free: 23.1 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.1306, allocations: 0.9688 kB / 295.5 MB, free: 23.1 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000288/0.1309, allocations: 234.7 kB / 295.7 MB, free: 23.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003838/0.1313, allocations: 110 kB / 295.8 MB, free: 23.08 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/0.1332, allocations: 1.239 MB / 297 MB, free: 22.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.92e-05/0.1333, allocations: 123.8 kB / 297.2 MB, free: 22.43 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.1334, allocations: 45.94 kB / 297.2 MB, free: 22.41 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001828/0.1336, allocations: 156.9 kB / 297.3 MB, free: 22.35 MB / 266.7 MB Notification: Performance of SimCode: time 7.11e-07/0.1336, allocations: 0 / 297.3 MB, free: 22.35 MB / 266.7 MB Notification: Performance of Templates: time 0.01009/0.1437, allocations: 9.44 MB / 306.8 MB, free: 18.61 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.8180170338600874]