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.0008802/0.0008802, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.0009395/0.0009395, allocations: 177.6 kB / 24.92 MB, free: 8.652 MB / 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.9854/0.9854, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.543e-06/1.543e-06, allocations: 0 / 273.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.044e-05/2.198e-05, allocations: 2.312 kB / 273.5 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004075/0.004097, allocations: 3.193 MB / 276.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.0054, allocations: 1.134 MB / 277.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.005537, allocations: 7.938 kB / 277.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002826/0.00582, allocations: 87.17 kB / 277.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002892/0.006109, allocations: 198.4 kB / 278.1 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002527/0.006362, allocations: 211.6 kB / 278.3 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004431/0.006805, allocations: 0.6859 MB / 279 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.006967, allocations: 93.33 kB / 279.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004013/0.007368, allocations: 415.2 kB / 279.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002779/0.007646, allocations: 259.4 kB / 279.7 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.984e-05/0.007706, allocations: 59.98 kB / 279.8 MB, free: 10.92 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001951/0.007901, allocations: 99.92 kB / 279.9 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.00802, allocations: 147.5 kB / 280 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.008153, allocations: 191.5 kB / 280.2 MB, free: 10.49 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004189/0.008572, allocations: 0.4983 MB / 280.7 MB, free: 9.988 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.008574, allocations: 0 / 280.7 MB, free: 9.988 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.008575, allocations: 0 / 280.7 MB, free: 9.988 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.00858, allocations: 3.938 kB / 280.7 MB, free: 9.984 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.0007603/0.00934, allocations: 0.7137 MB / 281.4 MB, free: 9.246 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.89e-05/0.009369, allocations: 12.03 kB / 281.5 MB, free: 9.234 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000149/0.009518, allocations: 76.86 kB / 281.5 MB, free: 9.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002833/0.009802, allocations: 262.2 kB / 281.8 MB, free: 8.875 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.102e-05/0.009833, allocations: 41.36 kB / 281.8 MB, free: 8.832 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.174e-05/0.009884, allocations: 44.33 kB / 281.9 MB, free: 8.789 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003539/0.01024, allocations: 334.8 kB / 282.2 MB, free: 8.457 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.01026, allocations: 8.172 kB / 282.2 MB, free: 8.449 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.85e-05/0.01028, allocations: 20.38 kB / 282.2 MB, free: 8.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.01029, allocations: 11.94 kB / 282.2 MB, free: 8.418 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002679/0.01056, allocations: 190.8 kB / 282.4 MB, free: 8.234 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009482/0.01151, allocations: 0.6616 MB / 283.1 MB, free: 7.555 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003475/0.01186, allocations: 260.5 kB / 283.3 MB, free: 7.285 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.01201, allocations: 130.3 kB / 283.5 MB, free: 7.156 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.191e-05/0.01204, allocations: 8.5 kB / 283.5 MB, free: 7.148 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.01207, allocations: 43 kB / 283.5 MB, free: 7.098 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 2.334e-06/0.01207, allocations: 3.984 kB / 283.5 MB, free: 7.094 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.001893/0.01396, allocations: 1.344 MB / 284.9 MB, free: 5.699 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.819e-05/0.01399, allocations: 59.91 kB / 284.9 MB, free: 5.629 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.01415, allocations: 260.6 kB / 285.2 MB, free: 5.359 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.847e-05/0.01418, allocations: 45.7 kB / 285.2 MB, free: 5.309 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.849e-05/0.01425, allocations: 174 kB / 285.4 MB, free: 5.129 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.01436, allocations: 218.2 kB / 285.6 MB, free: 4.914 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.01447, allocations: 106.2 kB / 285.7 MB, free: 4.805 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.201e-05/0.01455, allocations: 354.7 kB / 286.1 MB, free: 4.449 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/0.01469, allocations: 93.28 kB / 286.1 MB, free: 4.359 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.01482, allocations: 136.8 kB / 286.3 MB, free: 4.219 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002259/0.01505, allocations: 236.8 kB / 286.5 MB, free: 3.984 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.01505, allocations: 0 / 286.5 MB, free: 3.984 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0005096/0.01556, allocations: 418.8 kB / 286.9 MB, free: 3.562 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.01557, allocations: 11.88 kB / 286.9 MB, free: 3.551 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.01558, allocations: 0 / 286.9 MB, free: 3.551 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003843/0.01596, allocations: 265.5 kB / 287.2 MB, free: 3.285 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.01614, allocations: 87.84 kB / 287.3 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006003/0.01674, allocations: 1.205 MB / 288.5 MB, free: 1.938 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001738/0.01691, allocations: 56 kB / 288.5 MB, free: 1.883 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.195e-05/0.01693, allocations: 8 kB / 288.5 MB, free: 1.875 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.0001117/0.01704, allocations: 148.6 kB / 288.7 MB, free: 1.719 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.981e-05/0.0171, allocations: 43.97 kB / 288.7 MB, free: 1.676 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.656e-05/0.01716, allocations: 59.69 kB / 288.8 MB, free: 1.617 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.01716, allocations: 7.984 kB / 288.8 MB, free: 1.609 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.01717, allocations: 3.938 kB / 288.8 MB, free: 1.605 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.01717, allocations: 3.984 kB / 288.8 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009972/0.01817, allocations: 0.7956 MB / 289.6 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.01817, allocations: 4 kB / 289.6 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001922/0.01837, allocations: 88.05 kB / 289.7 MB, free: 0.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003402/0.01871, allocations: 257.5 kB / 289.9 MB, free: 420 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.125e-05/0.01874, allocations: 19.92 kB / 290 MB, free: 400 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09955/0.1183, allocations: 1.179 MB / 291.1 MB, free: 24.53 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1183, allocations: 3.422 kB / 291.1 MB, free: 24.53 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007616/0.1191, allocations: 0.6142 MB / 291.8 MB, free: 24.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.1192, allocations: 62.75 kB / 291.8 MB, free: 24.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.86e-05/0.1192, allocations: 21.44 kB / 291.8 MB, free: 24.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001857/0.1194, allocations: 46.83 kB / 291.9 MB, free: 24.34 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.1196, allocations: 100.4 kB / 292 MB, free: 24.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.087e-05/0.1196, allocations: 23.92 kB / 292 MB, free: 24.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.098e-05/0.1197, allocations: 91.23 kB / 292.1 MB, free: 24.33 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1197, allocations: 0 / 292.1 MB, free: 24.33 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000311/0.12, allocations: 130 kB / 292.2 MB, free: 24.33 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.0008807/0.1209, allocations: 480.7 kB / 292.7 MB, free: 24.23 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005203/0.1214, allocations: 332.2 kB / 293 MB, free: 24.21 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.1214, allocations: 2.281 kB / 293 MB, free: 24.21 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002677/0.1217, allocations: 216.5 kB / 293.2 MB, free: 24.2 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.122, allocations: 121 kB / 293.3 MB, free: 24.19 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.1238, allocations: 1.125 MB / 294.5 MB, free: 23.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.2e-05/0.1239, allocations: 121 kB / 294.6 MB, free: 23.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001105/0.124, allocations: 41.25 kB / 294.6 MB, free: 23.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001741/0.1242, allocations: 125.7 kB / 294.8 MB, free: 23.6 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.1242, allocations: 4 kB / 294.8 MB, free: 23.59 MB / 266.7 MB Notification: Performance of Templates: time 0.01034/0.1345, allocations: 9.351 MB / 304.1 MB, free: 20.62 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 -s gbode -gbm=radauIIA3 -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.778479006141424]