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.001837/0.001837, allocations: 100 kB / 21.18 MB, free: 0.6484 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.002126/0.002126, allocations: 184.9 kB / 24.45 MB, free: 3.961 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.518/1.518, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.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.001855/0.001855, allocations: 43.92 kB / 371.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3218, allocations: 52.18 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005634/0.3274, allocations: 2.837 MB / 426.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002373/0.3298, allocations: 0.9037 MB / 427.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003605/0.3301, allocations: 15.88 kB / 427.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000338/0.3305, allocations: 63.31 kB / 427.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004601/0.3309, allocations: 138.8 kB / 427.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000842/0.3318, allocations: 227.6 kB / 428 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009647/0.3327, allocations: 0.6316 MB / 428.6 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002504/0.333, allocations: 92.31 kB / 428.7 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005447/0.3335, allocations: 287 kB / 429 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005461/0.3341, allocations: 278.9 kB / 429.3 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001375/0.3342, allocations: 48 kB / 429.3 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002644/0.3345, allocations: 95.95 kB / 429.4 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001851/0.3347, allocations: 131.5 kB / 429.5 MB, free: 8.719 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004237/0.3351, allocations: 211.1 kB / 429.7 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001032/0.3361, allocations: 0.5983 MB / 430.3 MB, free: 7.914 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3361, allocations: 4 kB / 430.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3361, allocations: 0 / 430.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.663e-05/0.3361, allocations: 3.938 kB / 430.3 MB, free: 7.906 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.001823/0.338, allocations: 0.7195 MB / 431.1 MB, free: 7.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.338, allocations: 8.031 kB / 431.1 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.3381, allocations: 52.61 kB / 431.1 MB, free: 7.098 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006124/0.3388, allocations: 273.2 kB / 431.4 MB, free: 6.809 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.219e-05/0.3388, allocations: 29.38 kB / 431.4 MB, free: 6.777 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.666e-05/0.3389, allocations: 36.38 kB / 431.5 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009869/0.3399, allocations: 482.6 kB / 431.9 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.741e-05/0.3399, allocations: 3.953 kB / 431.9 MB, free: 6.262 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.94e-05/0.34, allocations: 20 kB / 432 MB, free: 6.242 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.34, allocations: 8 kB / 432 MB, free: 6.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.341, allocations: 471.7 kB / 432.4 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002242/0.3432, allocations: 0.9238 MB / 433.3 MB, free: 4.816 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.3443, allocations: 364.4 kB / 433.7 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000612/0.3449, allocations: 242.1 kB / 433.9 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.451e-05/0.3449, allocations: 16.36 kB / 434 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.42e-05/0.345, allocations: 38.98 kB / 434 MB, free: 4.145 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 4.067e-06/0.345, allocations: 4 kB / 434 MB, free: 4.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.005677/0.3506, allocations: 2.04 MB / 436 MB, free: 2.043 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.3507, allocations: 59.91 kB / 436.1 MB, free: 1.973 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003165/0.351, allocations: 261.9 kB / 436.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.885e-05/0.3511, allocations: 37.7 kB / 436.4 MB, free: 1.668 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002214/0.3513, allocations: 197.5 kB / 436.6 MB, free: 1.469 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/0.3515, allocations: 206.3 kB / 436.8 MB, free: 1.266 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002143/0.3517, allocations: 110.3 kB / 436.9 MB, free: 1.152 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.3519, allocations: 342.8 kB / 437.2 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005101/0.3524, allocations: 249.1 kB / 437.5 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006079/0.353, allocations: 288.8 kB / 437.7 MB, free: 288 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008728/0.3539, allocations: 414 kB / 438.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.3539, allocations: 4 kB / 438.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002066/0.356, allocations: 0.7797 MB / 438.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.356, allocations: 4 kB / 438.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.356, allocations: 0 / 438.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009994/0.357, allocations: 0.5013 MB / 439.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003603/0.3573, allocations: 87.89 kB / 439.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00191/0.3592, allocations: 1.401 MB / 440.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005275/0.3598, allocations: 76.06 kB / 441 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.562e-05/0.3598, allocations: 23.92 kB / 441 MB, free: 12.93 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.0002836/0.3601, allocations: 168.3 kB / 441.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.3602, allocations: 39.77 kB / 441.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001449/0.3604, allocations: 55.61 kB / 441.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.3604, allocations: 8 kB / 441.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.3604, allocations: 4 kB / 441.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.3604, allocations: 3.984 kB / 441.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00307/0.3635, allocations: 1.288 MB / 442.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.3635, allocations: 4 kB / 442.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003973/0.3639, allocations: 87.83 kB / 442.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008631/0.3647, allocations: 473.5 kB / 443.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.009e-05/0.3648, allocations: 31.91 kB / 443.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001472/0.3663, allocations: 1.362 MB / 444.5 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/0.3663, allocations: 7.922 kB / 444.5 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002515/0.3688, allocations: 1.095 MB / 445.6 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002702/0.3691, allocations: 87.84 kB / 445.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.792e-05/0.3692, allocations: 19.94 kB / 445.7 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004386/0.3696, allocations: 55.92 kB / 445.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002278/0.3698, allocations: 104.2 kB / 445.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.715e-05/0.3699, allocations: 27.97 kB / 445.9 MB, free: 7.859 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002109/0.3701, allocations: 189.2 kB / 446.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3701, allocations: 0 / 446.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006696/0.3708, allocations: 132 kB / 446.2 MB, free: 7.547 MB / 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.0002646/0.371, allocations: 135.1 kB / 446.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001416/0.3724, allocations: 0.561 MB / 446.9 MB, free: 6.848 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.3724, allocations: 0 / 446.9 MB, free: 6.848 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007459/0.3732, allocations: 314.3 kB / 447.2 MB, free: 6.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006336/0.3738, allocations: 85.66 kB / 447.3 MB, free: 6.453 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003964/0.3778, allocations: 1.477 MB / 448.8 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002535/0.378, allocations: 224.8 kB / 449 MB, free: 4.695 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.3782, allocations: 43.42 kB / 449.1 MB, free: 4.652 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3782, allocations: 0 / 449.1 MB, free: 4.652 MB / 350.1 MB Notification: Performance of Templates: time 0.01444/0.3926, allocations: 8.698 MB / 457.8 MB, free: 11.96 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/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: 9.140559984836727]