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.001089/0.001089, allocations: 95.5 kB / 21.2 MB, free: 3.363 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.001863/0.001863, allocations: 156.5 kB / 24.56 MB, free: 8 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 0.9526/0.9526, allocations: 177 MB / 204.8 MB, free: 5.562 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.723e-06/1.723e-06, allocations: 0 / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.218e-05/2.39e-05, allocations: 2.312 kB / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.006014/0.006038, allocations: 3.183 MB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004755/0.01079, allocations: 1.103 MB / 277.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001756/0.01097, allocations: 11.94 kB / 277.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000306/0.01127, allocations: 87.11 kB / 277.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003731/0.01165, allocations: 206.4 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003796/0.01203, allocations: 207.6 kB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003731/0.01576, allocations: 0.6781 MB / 278.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.01592, allocations: 100.7 kB / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000428/0.01635, allocations: 407.2 kB / 278.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002677/0.01662, allocations: 263.3 kB / 279.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.923e-05/0.01668, allocations: 52 kB / 279.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001402/0.01682, allocations: 107.9 kB / 279.3 MB, free: 11.03 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001222/0.01694, allocations: 147.5 kB / 279.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.01707, allocations: 187.5 kB / 279.6 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000445/0.01751, allocations: 0.4983 MB / 280.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.01752, allocations: 0 / 280.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.01752, allocations: 0 / 280.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.01753, allocations: 3.938 kB / 280.1 MB, free: 10.2 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.0008744/0.0184, allocations: 0.8424 MB / 281 MB, free: 9.316 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.01843, allocations: 11.98 kB / 281 MB, free: 9.305 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001874/0.01862, allocations: 100.5 kB / 281.1 MB, free: 9.207 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003154/0.01894, allocations: 309 kB / 281.4 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.242e-05/0.01897, allocations: 33.38 kB / 281.4 MB, free: 8.836 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.556e-05/0.01902, allocations: 40.38 kB / 281.4 MB, free: 8.797 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004811/0.01951, allocations: 370.9 kB / 281.8 MB, free: 8.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.01952, allocations: 4.141 kB / 281.8 MB, free: 8.426 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.155e-05/0.01955, allocations: 24.31 kB / 281.8 MB, free: 8.402 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.01956, allocations: 15.94 kB / 281.8 MB, free: 8.387 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004085/0.01997, allocations: 277.7 kB / 282.1 MB, free: 8.117 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001211/0.02118, allocations: 0.927 MB / 283 MB, free: 7.148 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005354/0.02172, allocations: 321 kB / 283.4 MB, free: 6.816 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000256/0.02197, allocations: 172.8 kB / 283.5 MB, free: 6.648 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.546e-05/0.02201, allocations: 12.5 kB / 283.5 MB, free: 6.637 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.02204, allocations: 41.89 kB / 283.6 MB, free: 6.586 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 2.855e-06/0.02204, allocations: 0 / 283.6 MB, free: 6.586 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.002511/0.02455, allocations: 1.603 MB / 285.2 MB, free: 4.918 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.287e-05/0.02459, allocations: 55.91 kB / 285.2 MB, free: 4.852 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004879/0.02507, allocations: 318.3 kB / 285.5 MB, free: 4.523 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.368e-05/0.02512, allocations: 49.64 kB / 285.6 MB, free: 4.469 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.286e-05/0.02521, allocations: 232.3 kB / 285.8 MB, free: 4.234 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.02533, allocations: 230.1 kB / 286 MB, free: 4.008 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.02545, allocations: 112 kB / 286.2 MB, free: 3.891 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.02557, allocations: 0.5195 MB / 286.7 MB, free: 3.359 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.02579, allocations: 149.2 kB / 286.8 MB, free: 3.211 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002204/0.02601, allocations: 194.5 kB / 287 MB, free: 3.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003347/0.02634, allocations: 267.8 kB / 287.3 MB, free: 2.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.02634, allocations: 0 / 287.3 MB, free: 2.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007977/0.02714, allocations: 0.5859 MB / 287.9 MB, free: 2.148 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.02716, allocations: 7.125 kB / 287.9 MB, free: 2.145 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.02717, allocations: 4.031 kB / 287.9 MB, free: 2.141 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004689/0.02764, allocations: 299.1 kB / 288.2 MB, free: 1.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.02781, allocations: 79.91 kB / 288.2 MB, free: 1.762 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1053/0.1331, allocations: 1.759 MB / 290 MB, free: 23.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003568/0.1335, allocations: 56.81 kB / 290.1 MB, free: 23.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/0.1335, allocations: 18.91 kB / 290.1 MB, free: 23.98 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.0001588/0.1337, allocations: 189.7 kB / 290.3 MB, free: 23.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.273e-05/0.1337, allocations: 59.25 kB / 290.3 MB, free: 23.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.091e-05/0.1338, allocations: 61.28 kB / 290.4 MB, free: 23.81 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.1338, allocations: 10.06 kB / 290.4 MB, free: 23.81 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.1338, allocations: 4.25 kB / 290.4 MB, free: 23.81 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1338, allocations: 2.484 kB / 290.4 MB, free: 23.81 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001556/0.1354, allocations: 1.13 MB / 291.5 MB, free: 23.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1354, allocations: 2.531 kB / 291.5 MB, free: 23.44 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000217/0.1356, allocations: 85.58 kB / 291.6 MB, free: 23.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004339/0.136, allocations: 284.5 kB / 291.9 MB, free: 23.42 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.908e-05/0.1361, allocations: 24.38 kB / 291.9 MB, free: 23.42 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006291/0.1367, allocations: 1.771 MB / 293.7 MB, free: 21.83 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1367, allocations: 1.125 kB / 293.7 MB, free: 21.83 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009691/0.1377, allocations: 0.8535 MB / 294.5 MB, free: 21.54 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.1378, allocations: 91.08 kB / 294.6 MB, free: 21.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.985e-05/0.1379, allocations: 21.59 kB / 294.6 MB, free: 21.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001865/0.1381, allocations: 49.05 kB / 294.7 MB, free: 21.54 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/0.1382, allocations: 102.4 kB / 294.8 MB, free: 21.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.097e-05/0.1383, allocations: 22.03 kB / 294.8 MB, free: 21.54 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001176/0.1384, allocations: 222.3 kB / 295 MB, free: 21.42 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1384, allocations: 0 / 295 MB, free: 21.42 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003241/0.1387, allocations: 126.9 kB / 295.2 MB, free: 21.42 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.0007566/0.1395, allocations: 367.8 kB / 295.5 MB, free: 21.33 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006826/0.1401, allocations: 429.8 kB / 295.9 MB, free: 21.3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1401, allocations: 0 / 295.9 MB, free: 21.3 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003368/0.1405, allocations: 252.8 kB / 296.2 MB, free: 21.28 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004181/0.1409, allocations: 122.9 kB / 296.3 MB, free: 21.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/0.1429, allocations: 1.248 MB / 297.5 MB, free: 20.69 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.917e-05/0.143, allocations: 120.3 kB / 297.7 MB, free: 20.62 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001162/0.1431, allocations: 45.2 kB / 297.7 MB, free: 20.61 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.244e-05/0.1432, allocations: 45.09 kB / 297.8 MB, free: 20.6 MB / 266.7 MB Notification: Performance of SimCode: time 1.001e-06/0.1432, allocations: 0 / 297.8 MB, free: 20.6 MB / 266.7 MB Notification: Performance of Templates: time 0.01072/0.154, allocations: 9.328 MB / 307.1 MB, free: 16.86 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: 3.029843089170754]