Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.908/0.908, allocations: 177.1 MB / 205 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.345e-05/1.48e-05, allocations: 2.312 kB / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003169/0.003184, allocations: 3.182 MB / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001453/0.004637, allocations: 1.107 MB / 277.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001403/0.004777, allocations: 7.938 kB / 277.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002681/0.005045, allocations: 87.11 kB / 277.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003189/0.005364, allocations: 198.5 kB / 277.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.005698, allocations: 211.6 kB / 277.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007097/0.006408, allocations: 0.6898 MB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.006561, allocations: 88.69 kB / 278.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004139/0.006975, allocations: 419.1 kB / 278.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002759/0.007251, allocations: 255.4 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.553e-05/0.007317, allocations: 52 kB / 279.2 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000159/0.007476, allocations: 111.9 kB / 279.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.007594, allocations: 139.5 kB / 279.5 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.007725, allocations: 191.5 kB / 279.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004314/0.008156, allocations: 0.5021 MB / 280.2 MB, free: 10.28 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.993e-06/0.008158, allocations: 0 / 280.2 MB, free: 10.28 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.008158, allocations: 4 kB / 280.2 MB, free: 10.28 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.008164, allocations: 0 / 280.2 MB, free: 10.28 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.0008481/0.009012, allocations: 0.8346 MB / 281 MB, free: 9.406 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.009042, allocations: 8.031 kB / 281 MB, free: 9.398 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001718/0.009214, allocations: 108.5 kB / 281.1 MB, free: 9.293 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003085/0.009522, allocations: 312.8 kB / 281.4 MB, free: 8.953 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.341e-05/0.009556, allocations: 33.38 kB / 281.5 MB, free: 8.918 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.606e-05/0.009612, allocations: 40.38 kB / 281.5 MB, free: 8.879 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000486/0.0101, allocations: 370.9 kB / 281.9 MB, free: 8.512 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.01012, allocations: 8.141 kB / 281.9 MB, free: 8.504 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.523e-05/0.01015, allocations: 24.36 kB / 281.9 MB, free: 8.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.01016, allocations: 11.94 kB / 281.9 MB, free: 8.469 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004111/0.01057, allocations: 277.8 kB / 282.2 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.01171, allocations: 0.9231 MB / 283.1 MB, free: 7.234 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004813/0.01219, allocations: 329 kB / 283.4 MB, free: 6.895 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002505/0.01245, allocations: 165.1 kB / 283.6 MB, free: 6.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.204e-05/0.01248, allocations: 8.5 kB / 283.6 MB, free: 6.723 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.0125, allocations: 41.89 kB / 283.6 MB, free: 6.672 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 1.523e-06/0.0125, allocations: 0 / 283.6 MB, free: 6.672 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.002625/0.01513, allocations: 1.607 MB / 285.2 MB, free: 5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/0.01515, allocations: 63.89 kB / 285.3 MB, free: 4.926 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001932/0.01535, allocations: 314.3 kB / 285.6 MB, free: 4.602 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.185e-05/0.01539, allocations: 45.69 kB / 285.7 MB, free: 4.551 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.01549, allocations: 232.4 kB / 285.9 MB, free: 4.316 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.01561, allocations: 226.1 kB / 286.1 MB, free: 4.094 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.01572, allocations: 108 kB / 286.2 MB, free: 3.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.01585, allocations: 0.5235 MB / 286.7 MB, free: 3.445 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002144/0.01606, allocations: 145.2 kB / 286.9 MB, free: 3.301 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002223/0.01628, allocations: 194.5 kB / 287.1 MB, free: 3.109 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003316/0.01662, allocations: 271.8 kB / 287.3 MB, free: 2.836 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.01662, allocations: 0 / 287.3 MB, free: 2.836 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007772/0.01739, allocations: 0.5821 MB / 287.9 MB, free: 2.238 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.01741, allocations: 4 kB / 287.9 MB, free: 2.234 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.01741, allocations: 0 / 287.9 MB, free: 2.234 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000508/0.01792, allocations: 303.1 kB / 288.2 MB, free: 1.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001809/0.0181, allocations: 83.84 kB / 288.3 MB, free: 1.848 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008639/0.01897, allocations: 1.776 MB / 290.1 MB, free: 8 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1046/0.1235, allocations: 48.52 kB / 290.1 MB, free: 25.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.407e-05/0.1236, allocations: 22.62 kB / 290.1 MB, free: 25.3 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.0001657/0.1237, allocations: 188.3 kB / 290.3 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.854e-05/0.1238, allocations: 58.09 kB / 290.4 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.139e-05/0.1239, allocations: 58.02 kB / 290.4 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.1239, allocations: 11.41 kB / 290.4 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.1239, allocations: 0 / 290.4 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.1239, allocations: 5.406 kB / 290.4 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/0.1255, allocations: 1.128 MB / 291.6 MB, free: 24.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.1255, allocations: 1.375 kB / 291.6 MB, free: 24.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002168/0.1257, allocations: 81.84 kB / 291.7 MB, free: 24.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004349/0.1262, allocations: 294.5 kB / 291.9 MB, free: 24.74 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.927e-05/0.1262, allocations: 22 kB / 292 MB, free: 24.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006182/0.1268, allocations: 1.766 MB / 293.7 MB, free: 23.15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1268, allocations: 1.094 kB / 293.7 MB, free: 23.15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.1278, allocations: 0.8535 MB / 294.6 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001429/0.128, allocations: 93.19 kB / 294.7 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.21e-05/0.1281, allocations: 21.27 kB / 294.7 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001882/0.1282, allocations: 44.98 kB / 294.7 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.1284, allocations: 106.8 kB / 294.8 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-05/0.1284, allocations: 28.16 kB / 294.9 MB, free: 22.86 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001193/0.1285, allocations: 220.2 kB / 295.1 MB, free: 22.74 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1285, allocations: 0 / 295.1 MB, free: 22.74 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003291/0.1289, allocations: 130.9 kB / 295.2 MB, free: 22.74 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.0007012/0.1296, allocations: 371.9 kB / 295.6 MB, free: 22.64 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007308/0.1303, allocations: 422.8 kB / 296 MB, free: 22.61 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1303, allocations: 1 kB / 296 MB, free: 22.61 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003513/0.1307, allocations: 254.3 kB / 296.2 MB, free: 22.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004188/0.1311, allocations: 126.7 kB / 296.4 MB, free: 22.58 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/0.1332, allocations: 1.242 MB / 297.6 MB, free: 22 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.708e-05/0.1333, allocations: 121.6 kB / 297.7 MB, free: 21.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001205/0.1334, allocations: 41.14 kB / 297.8 MB, free: 21.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.612e-05/0.1335, allocations: 46.28 kB / 297.8 MB, free: 21.9 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.1335, allocations: 3.5 kB / 297.8 MB, free: 21.9 MB / 266.7 MB Notification: Performance of Templates: time 0.0106/0.1441, allocations: 9.331 MB / 307.1 MB, free: 18.12 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.949954293202609]