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.001283/0.001283, allocations: 72.06 kB / 21.24 MB, free: 400 kB / 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.001308/0.001308, allocations: 161.4 kB / 24.49 MB, free: 3.461 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.406/1.406, allocations: 173.4 MB / 201.1 MB, free: 12.68 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.002202/0.002202, allocations: 47.25 kB / 319.4 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1082, allocations: 52.16 MB / 371.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004456/0.1126, allocations: 2.834 MB / 374.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.1143, allocations: 0.8999 MB / 375.3 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.1145, allocations: 7.938 kB / 375.3 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002487/0.1147, allocations: 75.28 kB / 375.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002551/0.115, allocations: 130.8 kB / 375.5 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005484/0.1155, allocations: 235.6 kB / 375.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006766/0.1162, allocations: 0.6277 MB / 376.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002059/0.1164, allocations: 92.59 kB / 376.5 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003692/0.1168, allocations: 287 kB / 376.7 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004025/0.1172, allocations: 278.9 kB / 377 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.27e-05/0.1173, allocations: 48 kB / 377.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.1175, allocations: 99.94 kB / 377.2 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.1176, allocations: 131.5 kB / 377.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000234/0.1179, allocations: 211.1 kB / 377.5 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007004/0.1186, allocations: 0.5993 MB / 378.1 MB, free: 0.793 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1186, allocations: 0 / 378.1 MB, free: 0.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1186, allocations: 0 / 378.1 MB, free: 0.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.1186, allocations: 3.938 kB / 378.1 MB, free: 0.7891 MB / 334.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.00143/0.12, allocations: 0.7194 MB / 378.8 MB, free: 40 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.12, allocations: 8.922 kB / 378.8 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.1202, allocations: 56.66 kB / 378.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000476/0.1206, allocations: 265.1 kB / 379.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.943e-05/0.1207, allocations: 33.38 kB / 379.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.325e-05/0.1208, allocations: 40.38 kB / 379.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008861/0.1216, allocations: 474.6 kB / 379.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.1217, allocations: 7.953 kB / 379.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.509e-05/0.1217, allocations: 16 kB / 379.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.1217, allocations: 12 kB / 379.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009821/0.1227, allocations: 475.7 kB / 380.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001957/0.1247, allocations: 0.9162 MB / 381.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008105/0.1255, allocations: 368.5 kB / 381.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005391/0.126, allocations: 254.1 kB / 381.7 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.732e-05/0.1261, allocations: 4.5 kB / 381.7 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.1261, allocations: 43.06 kB / 381.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.853e-06/0.1261, allocations: 4 kB / 381.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.005121/0.1312, allocations: 2.033 MB / 383.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.1313, allocations: 63.91 kB / 383.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002871/0.1315, allocations: 261.8 kB / 384.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.769e-05/0.1316, allocations: 49.64 kB / 384.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.1317, allocations: 193.5 kB / 384.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.1319, allocations: 202.3 kB / 384.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.1321, allocations: 110.3 kB / 384.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.1323, allocations: 346.8 kB / 385 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004921/0.1327, allocations: 245.2 kB / 385.2 MB, free: 9.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005269/0.1333, allocations: 288.8 kB / 385.5 MB, free: 9.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008312/0.1341, allocations: 418 kB / 385.9 MB, free: 8.746 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1341, allocations: 0 / 385.9 MB, free: 8.746 MB / 350.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001699/0.1358, allocations: 0.7797 MB / 386.7 MB, free: 7.953 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.1358, allocations: 4 kB / 386.7 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.1358, allocations: 4 kB / 386.7 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009502/0.1368, allocations: 0.4934 MB / 387.2 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004092/0.1372, allocations: 87.89 kB / 387.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/0.1387, allocations: 1.405 MB / 388.7 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004909/0.1392, allocations: 76.06 kB / 388.8 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.366e-05/0.1392, allocations: 23.98 kB / 388.8 MB, free: 5.805 MB / 350.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.000231/0.1394, allocations: 169.7 kB / 388.9 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.813e-05/0.1395, allocations: 43.7 kB / 389 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001275/0.1397, allocations: 59.61 kB / 389 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.1397, allocations: 8 kB / 389.1 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.1397, allocations: 0 / 389.1 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.1397, allocations: 3.984 kB / 389.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002864/0.1425, allocations: 1.274 MB / 390.3 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-06/0.1425, allocations: 4 kB / 390.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000392/0.1429, allocations: 83.89 kB / 390.4 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008367/0.1438, allocations: 489.4 kB / 390.9 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-05/0.1438, allocations: 23.92 kB / 390.9 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001371/0.1452, allocations: 1.374 MB / 392.3 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.1452, allocations: 7.969 kB / 392.3 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002191/0.1474, allocations: 1.088 MB / 393.4 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002188/0.1476, allocations: 91.67 kB / 393.5 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.639e-05/0.1477, allocations: 28.11 kB / 393.5 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004451/0.1481, allocations: 55.94 kB / 393.6 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002186/0.1484, allocations: 100.2 kB / 393.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.128e-05/0.1484, allocations: 31.97 kB / 393.7 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000199/0.1486, allocations: 181.2 kB / 393.9 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1486, allocations: 0 / 393.9 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004899/0.1491, allocations: 132 kB / 394 MB, free: 432 kB / 350.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.0002377/0.1493, allocations: 139.1 kB / 394.1 MB, free: 284 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.1506, allocations: 0.5615 MB / 394.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.1507, allocations: 0 / 394.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007234/0.1514, allocations: 330.6 kB / 395 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005651/0.1519, allocations: 73.55 kB / 395.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003726/0.1557, allocations: 1.436 MB / 396.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.1559, allocations: 220.9 kB / 396.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001419/0.156, allocations: 35.28 kB / 396.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.949e-05/0.1561, allocations: 32.48 kB / 396.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1561, allocations: 3.938 kB / 396.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of Templates: time 0.01492/0.171, allocations: 8.491 MB / 405.3 MB, free: 5.133 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 -s ida -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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 4.702348400955088]