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.000973/0.000973, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.00386/0.00386, allocations: 160.7 kB / 24.7 MB, free: 9.418 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.8495/0.8495, allocations: 177.1 MB / 205 MB, free: 5.719 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.573e-06/1.573e-06, allocations: 0 / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.564e-05/1.721e-05, allocations: 2.281 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002983/0.003, allocations: 2.98 MB / 328.8 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.004115, allocations: 1.083 MB / 329.9 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.004236, allocations: 15.88 kB / 329.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002385/0.004474, allocations: 79.23 kB / 330 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002561/0.00473, allocations: 206.4 kB / 330.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002511/0.004981, allocations: 203.6 kB / 330.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004057/0.005387, allocations: 0.6859 MB / 331.1 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/0.005539, allocations: 96.69 kB / 331.2 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003389/0.005877, allocations: 415.1 kB / 331.6 MB, free: 9.648 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000236/0.006113, allocations: 255.4 kB / 331.8 MB, free: 9.398 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.383e-05/0.006167, allocations: 48 kB / 331.9 MB, free: 9.352 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.006291, allocations: 111.9 kB / 332 MB, free: 9.242 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.006407, allocations: 143.5 kB / 332.1 MB, free: 9.102 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.006521, allocations: 183.5 kB / 332.3 MB, free: 8.922 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004938/0.007015, allocations: 0.6932 MB / 333 MB, free: 8.227 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.007017, allocations: 0 / 333 MB, free: 8.227 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.007017, allocations: 0 / 333 MB, free: 8.227 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.007023, allocations: 7.938 kB / 333 MB, free: 8.219 MB / 298.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.0008864/0.00791, allocations: 0.7532 MB / 333.7 MB, free: 7.438 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.007953, allocations: 12.03 kB / 333.8 MB, free: 7.426 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.008095, allocations: 64.56 kB / 333.8 MB, free: 7.363 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003169/0.008412, allocations: 293.4 kB / 334.1 MB, free: 7.047 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.101e-05/0.008443, allocations: 37.38 kB / 334.1 MB, free: 7.008 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.337e-05/0.008496, allocations: 40.33 kB / 334.2 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005229/0.009019, allocations: 466.9 kB / 334.6 MB, free: 6.508 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.009036, allocations: 8.172 kB / 334.6 MB, free: 6.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.112e-05/0.009067, allocations: 24.31 kB / 334.7 MB, free: 6.477 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.009075, allocations: 15.94 kB / 334.7 MB, free: 6.461 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005695/0.009645, allocations: 459.7 kB / 335.1 MB, free: 6.016 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001539/0.01118, allocations: 0.9238 MB / 336.1 MB, free: 5.051 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005366/0.01172, allocations: 404.5 kB / 336.5 MB, free: 4.645 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003132/0.01203, allocations: 250.2 kB / 336.7 MB, free: 4.398 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.01207, allocations: 8.5 kB / 336.7 MB, free: 4.391 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.977e-05/0.01209, allocations: 35.06 kB / 336.7 MB, free: 4.348 MB / 298.7 MB Notification: Performance of pre-optimization done (n=55): time 2.084e-06/0.01209, allocations: 0 / 336.7 MB, free: 4.348 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.00281/0.0149, allocations: 2.018 MB / 338.8 MB, free: 2.277 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.048e-05/0.01493, allocations: 63.84 kB / 338.8 MB, free: 2.203 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001911/0.01512, allocations: 284.2 kB / 339.1 MB, free: 1.914 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.01516, allocations: 45.69 kB / 339.1 MB, free: 1.863 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.568e-05/0.01524, allocations: 189.6 kB / 339.3 MB, free: 1.676 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.01535, allocations: 218.2 kB / 339.5 MB, free: 1.461 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.01545, allocations: 110.3 kB / 339.6 MB, free: 1.348 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.839e-05/0.01554, allocations: 350.7 kB / 340 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002843/0.01583, allocations: 225.2 kB / 340.2 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003065/0.01613, allocations: 276.8 kB / 340.5 MB, free: 0.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004564/0.01659, allocations: 390.1 kB / 340.9 MB, free: 116 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.01659, allocations: 8 kB / 340.9 MB, free: 108 kB / 298.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009067/0.0175, allocations: 0.7406 MB / 341.6 MB, free: 15.35 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.01751, allocations: 8.031 kB / 341.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.01752, allocations: 0 / 341.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005041/0.01802, allocations: 381.4 kB / 342 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.01818, allocations: 87.89 kB / 342.1 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00108/0.01926, allocations: 1.394 MB / 343.5 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002213/0.01948, allocations: 80.06 kB / 343.5 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.378e-05/0.01951, allocations: 19.98 kB / 343.6 MB, free: 13.33 MB / 314.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.0001378/0.01965, allocations: 169.7 kB / 343.7 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.453e-05/0.0197, allocations: 47.72 kB / 343.8 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.711e-05/0.01977, allocations: 63.69 kB / 343.8 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.01977, allocations: 7.938 kB / 343.9 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.01978, allocations: 4 kB / 343.9 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.01978, allocations: 3.984 kB / 343.9 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001465/0.02125, allocations: 1.266 MB / 345.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.02125, allocations: 3.938 kB / 345.1 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.02143, allocations: 83.89 kB / 345.2 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004104/0.02184, allocations: 345.6 kB / 345.5 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.078e-05/0.02187, allocations: 23.97 kB / 345.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007401/0.02261, allocations: 1.366 MB / 346.9 MB, free: 9.836 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.02262, allocations: 0 / 346.9 MB, free: 9.836 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/0.02378, allocations: 1.045 MB / 348 MB, free: 8.746 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/0.0239, allocations: 91.69 kB / 348.1 MB, free: 8.656 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.806e-05/0.02396, allocations: 23.98 kB / 348.1 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001997/0.02416, allocations: 55.94 kB / 348.2 MB, free: 8.578 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/0.0243, allocations: 108.2 kB / 348.3 MB, free: 8.473 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/0.02433, allocations: 19.98 kB / 348.3 MB, free: 8.453 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001218/0.02445, allocations: 207.1 kB / 348.5 MB, free: 8.254 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02445, allocations: 4 kB / 348.5 MB, free: 8.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002751/0.02472, allocations: 131.9 kB / 348.6 MB, free: 8.121 MB / 314.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.0006399/0.02536, allocations: 406.4 kB / 349 MB, free: 7.871 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007258/0.02609, allocations: 0.5303 MB / 349.5 MB, free: 7.344 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.02609, allocations: 3.938 kB / 349.5 MB, free: 7.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003841/0.02647, allocations: 323.1 kB / 349.9 MB, free: 7.023 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003608/0.02684, allocations: 99.03 kB / 350 MB, free: 6.934 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002301/0.02914, allocations: 1.364 MB / 351.3 MB, free: 5.523 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001325/0.02927, allocations: 229.3 kB / 351.5 MB, free: 5.273 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.208e-05/0.02935, allocations: 48.47 kB / 351.6 MB, free: 5.227 MB / 314.7 MB Notification: Performance of SimCode: time 5.01e-07/0.02935, allocations: 0 / 351.6 MB, free: 5.227 MB / 314.7 MB Notification: Performance of Templates: time 0.007166/0.03652, allocations: 9.258 MB / 360.8 MB, free: 11.98 MB / 330.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.890514699742198]