Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001723/0.001723, allocations: 124.5 kB / 18.46 MB, free: 4.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001872/0.001872, allocations: 190.6 kB / 21.4 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 225.6 MB / 249.8 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 43.92 kB / 366.8 MB, free: 328 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1158, allocations: 52.14 MB / 418.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004631/0.1205, allocations: 3.053 MB / 422 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001886/0.1223, allocations: 0.9426 MB / 422.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001721/0.1225, allocations: 8 kB / 422.9 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002587/0.1228, allocations: 67.31 kB / 423 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002737/0.1231, allocations: 134.9 kB / 423.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005563/0.1236, allocations: 223.6 kB / 423.4 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006787/0.1243, allocations: 0.6357 MB / 424 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002206/0.1245, allocations: 88.3 kB / 424.1 MB, free: 6.914 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003683/0.1249, allocations: 279.1 kB / 424.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004082/0.1253, allocations: 302.9 kB / 424.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.337e-05/0.1254, allocations: 48 kB / 424.7 MB, free: 6.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002019/0.1256, allocations: 103.9 kB / 424.8 MB, free: 6.195 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001541/0.1257, allocations: 127.6 kB / 424.9 MB, free: 6.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002519/0.126, allocations: 246.8 kB / 425.2 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000676/0.1267, allocations: 0.5954 MB / 425.8 MB, free: 5.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1267, allocations: 0 / 425.8 MB, free: 5.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1267, allocations: 0 / 425.8 MB, free: 5.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.1267, allocations: 0 / 425.8 MB, free: 5.23 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001546/0.1282, allocations: 0.8024 MB / 426.6 MB, free: 4.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.1282, allocations: 8.031 kB / 426.6 MB, free: 4.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.1284, allocations: 52.61 kB / 426.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000488/0.1288, allocations: 331.5 kB / 426.9 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.407e-05/0.1289, allocations: 33.31 kB / 427 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.104e-05/0.129, allocations: 44.38 kB / 427 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009131/0.1299, allocations: 478.6 kB / 427.5 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.167e-05/0.1299, allocations: 3.953 kB / 427.5 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.03e-05/0.1299, allocations: 16 kB / 427.5 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.13, allocations: 12 kB / 427.5 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.131, allocations: 479.7 kB / 428 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002124/0.1331, allocations: 1.118 MB / 429.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008643/0.134, allocations: 369 kB / 429.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005375/0.1345, allocations: 246 kB / 429.7 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.816e-05/0.1345, allocations: 8.438 kB / 429.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.1346, allocations: 38.94 kB / 429.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.475e-06/0.1346, allocations: 0 / 429.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.005455/0.14, allocations: 2.347 MB / 432.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.871e-05/0.1401, allocations: 55.97 kB / 432.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003184/0.1404, allocations: 287.3 kB / 432.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.943e-05/0.1405, allocations: 49.69 kB / 432.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.1406, allocations: 185.6 kB / 432.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001847/0.1408, allocations: 202.3 kB / 432.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/0.141, allocations: 106.3 kB / 433 MB, free: 13.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.1412, allocations: 350.8 kB / 433.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004988/0.1417, allocations: 241.2 kB / 433.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005463/0.1422, allocations: 296.8 kB / 433.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008318/0.143, allocations: 414.3 kB / 434.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.143, allocations: 0 / 434.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001757/0.1448, allocations: 0.7757 MB / 435 MB, free: 11.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.1448, allocations: 10.48 kB / 435 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.1448, allocations: 4 kB / 435 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009694/0.1458, allocations: 0.5013 MB / 435.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003582/0.1462, allocations: 83.89 kB / 435.6 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/0.1476, allocations: 1.401 MB / 437 MB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005052/0.1481, allocations: 76.06 kB / 437.1 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.676e-05/0.1482, allocations: 20 kB / 437.1 MB, free: 9.453 MB / 366.1 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 (57): * Single equations (assignments): 55 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002494/0.1484, allocations: 174.1 kB / 437.3 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.058e-05/0.1485, allocations: 47.72 kB / 437.3 MB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001475/0.1486, allocations: 63.72 kB / 437.4 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.1486, allocations: 8 kB / 437.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.1487, allocations: 0 / 437.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.1487, allocations: 3.984 kB / 437.4 MB, free: 9.156 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002959/0.1516, allocations: 1.433 MB / 438.8 MB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.1516, allocations: 7.938 kB / 438.8 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003812/0.152, allocations: 83.89 kB / 438.9 MB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008448/0.1529, allocations: 481.4 kB / 439.4 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.2e-05/0.1529, allocations: 24.06 kB / 439.4 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001367/0.1543, allocations: 1.386 MB / 440.8 MB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.1543, allocations: 0 / 440.8 MB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00219/0.1565, allocations: 1.085 MB / 441.9 MB, free: 4.492 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.1567, allocations: 164.8 kB / 442 MB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.895e-05/0.1568, allocations: 23.94 kB / 442.1 MB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004298/0.1572, allocations: 59.92 kB / 442.1 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/0.1574, allocations: 92.28 kB / 442.2 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.687e-05/0.1575, allocations: 23.98 kB / 442.2 MB, free: 4.117 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002183/0.1577, allocations: 205.9 kB / 442.4 MB, free: 3.914 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1577, allocations: 0 / 442.4 MB, free: 3.914 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005075/0.1582, allocations: 135.9 kB / 442.6 MB, free: 3.781 MB / 366.1 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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002736/0.1585, allocations: 145.1 kB / 442.7 MB, free: 3.629 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.1598, allocations: 0.5614 MB / 443.3 MB, free: 3.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1598, allocations: 0 / 443.3 MB, free: 3.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006997/0.1605, allocations: 322.3 kB / 443.6 MB, free: 2.754 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006137/0.1611, allocations: 79.88 kB / 443.7 MB, free: 2.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003859/0.165, allocations: 1.472 MB / 445.1 MB, free: 1.156 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004521/0.1654, allocations: 0.8241 MB / 446 MB, free: 316 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.1656, allocations: 43.42 kB / 446 MB, free: 272 kB / 366.1 MB Notification: Performance of SimCode: time 1.583e-06/0.1656, allocations: 0 / 446 MB, free: 272 kB / 366.1 MB Notification: Performance of Templates: time 0.1857/0.3513, allocations: 8.624 MB / 454.6 MB, free: 29.88 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 9.151505944086239]