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.001314/0.001314, allocations: 114.9 kB / 19.04 MB, free: 3.281 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.001335/0.001335, allocations: 190 kB / 22.21 MB, free: 112 kB / 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.387/1.387, allocations: 225.6 MB / 250.8 MB, free: 13.39 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.001528/0.001528, allocations: 47.92 kB / 368.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2463, allocations: 52.14 MB / 420.9 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004408/0.2507, allocations: 3.076 MB / 423.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001871/0.2526, allocations: 0.9426 MB / 424.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003083/0.2529, allocations: 4 kB / 424.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003784/0.2533, allocations: 63.31 kB / 424.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003445/0.2536, allocations: 138.9 kB / 425.1 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006411/0.2542, allocations: 215.6 kB / 425.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006907/0.2549, allocations: 0.6395 MB / 425.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000235/0.2552, allocations: 96.28 kB / 426 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003571/0.2555, allocations: 275.1 kB / 426.3 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003992/0.2559, allocations: 314.7 kB / 426.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.7e-05/0.256, allocations: 48 kB / 426.6 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002041/0.2562, allocations: 99.94 kB / 426.7 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.2564, allocations: 119.6 kB / 426.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002471/0.2566, allocations: 254.8 kB / 427.1 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007502/0.2573, allocations: 0.6007 MB / 427.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2574, allocations: 0 / 427.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2574, allocations: 0 / 427.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.186e-06/0.2574, allocations: 0 / 427.7 MB, free: 8.387 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.001465/0.2588, allocations: 0.7908 MB / 428.5 MB, free: 7.547 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.2589, allocations: 12.03 kB / 428.5 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.259, allocations: 52.61 kB / 428.6 MB, free: 7.484 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005216/0.2595, allocations: 331.5 kB / 428.9 MB, free: 7.121 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.521e-05/0.2595, allocations: 37.36 kB / 428.9 MB, free: 7.086 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.602e-05/0.2596, allocations: 36.38 kB / 429 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009161/0.2605, allocations: 478.6 kB / 429.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.738e-05/0.2606, allocations: 11.94 kB / 429.4 MB, free: 6.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.601e-05/0.2606, allocations: 16 kB / 429.4 MB, free: 6.547 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.2606, allocations: 8 kB / 429.5 MB, free: 6.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009746/0.2616, allocations: 483.7 kB / 429.9 MB, free: 6.066 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.2637, allocations: 1.122 MB / 431 MB, free: 4.895 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008402/0.2645, allocations: 365.7 kB / 431.4 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005197/0.265, allocations: 250 kB / 431.7 MB, free: 4.277 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.922e-05/0.2651, allocations: 4.438 kB / 431.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.2651, allocations: 43 kB / 431.7 MB, free: 4.223 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 1.733e-06/0.2651, allocations: 0 / 431.7 MB, free: 4.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.005195/0.2703, allocations: 2.339 MB / 434 MB, free: 1.754 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/0.2703, allocations: 55.97 kB / 434.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003364/0.2707, allocations: 287.3 kB / 434.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.922e-05/0.2707, allocations: 41.7 kB / 434.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.2709, allocations: 189.6 kB / 434.6 MB, free: 1.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001926/0.2711, allocations: 198.4 kB / 434.8 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002051/0.2713, allocations: 106.3 kB / 434.9 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.2715, allocations: 350.8 kB / 435.2 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004783/0.2719, allocations: 241.2 kB / 435.5 MB, free: 276 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005395/0.2725, allocations: 292.9 kB / 435.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007989/0.2733, allocations: 414.4 kB / 436.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2733, allocations: 0 / 436.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001702/0.275, allocations: 0.7874 MB / 437 MB, free: 14.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.275, allocations: 4 kB / 437 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.275, allocations: 3.938 kB / 437 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009921/0.276, allocations: 0.5012 MB / 437.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00037/0.2764, allocations: 91.83 kB / 437.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001462/0.2778, allocations: 1.405 MB / 439 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004804/0.2783, allocations: 67.91 kB / 439 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.332e-05/0.2784, allocations: 28.11 kB / 439 MB, free: 12.61 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.0002559/0.2786, allocations: 178.1 kB / 439.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.843e-05/0.2787, allocations: 43.72 kB / 439.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001376/0.2788, allocations: 59.73 kB / 439.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.2788, allocations: 4 kB / 439.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.2789, allocations: 0 / 439.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.2789, allocations: 7.969 kB / 439.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002896/0.2818, allocations: 1.437 MB / 440.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.2818, allocations: 3.938 kB / 440.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003766/0.2821, allocations: 83.89 kB / 440.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008484/0.283, allocations: 493.4 kB / 441.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-05/0.283, allocations: 15.98 kB / 441.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001367/0.2844, allocations: 1.37 MB / 442.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2844, allocations: 32 / 442.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002145/0.2866, allocations: 1.093 MB / 443.8 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/0.2868, allocations: 164.8 kB / 444 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.335e-05/0.2869, allocations: 27.88 kB / 444 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000412/0.2873, allocations: 59.92 kB / 444.1 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.2875, allocations: 92.3 kB / 444.2 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.803e-05/0.2875, allocations: 23.97 kB / 444.2 MB, free: 7.281 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002182/0.2878, allocations: 202 kB / 444.4 MB, free: 7.078 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2878, allocations: 0 / 444.4 MB, free: 7.078 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004969/0.2883, allocations: 136 kB / 444.5 MB, free: 6.945 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.0002822/0.2885, allocations: 147 kB / 444.7 MB, free: 6.789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.2899, allocations: 0.5575 MB / 445.2 MB, free: 6.238 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.2899, allocations: 0 / 445.2 MB, free: 6.238 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007425/0.2906, allocations: 326.3 kB / 445.5 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006076/0.2912, allocations: 84.48 kB / 445.6 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003745/0.295, allocations: 1.45 MB / 447.1 MB, free: 4.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004366/0.2954, allocations: 0.8163 MB / 447.9 MB, free: 3.508 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001702/0.2956, allocations: 43.25 kB / 447.9 MB, free: 3.469 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.2957, allocations: 39.42 kB / 448 MB, free: 3.43 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2957, allocations: 0 / 448 MB, free: 3.43 MB / 350.1 MB Notification: Performance of Templates: time 0.01676/0.3124, allocations: 10.38 MB / 458.3 MB, free: 9.086 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/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.656875868327916]