Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00176/0.00176, allocations: 82.72 kB / 21.99 MB, free: 4.754 MB / 14.72 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.002015/0.002015, allocations: 153.4 kB / 25.24 MB, free: 2.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.314/1.314, allocations: 158.6 MB / 187 MB, free: 6.336 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 50.73 kB / 299.4 MB, free: 6.871 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2125/0.2143, allocations: 49.14 MB / 348.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004355/0.2186, allocations: 2.816 MB / 351.3 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.2204, allocations: 0.9549 MB / 352.3 MB, free: 11.74 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001587/0.2206, allocations: 8 kB / 352.3 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000222/0.2208, allocations: 63.31 kB / 352.3 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002761/0.2211, allocations: 142.8 kB / 352.5 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000545/0.2216, allocations: 223.6 kB / 352.7 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006994/0.2223, allocations: 0.6355 MB / 353.3 MB, free: 10.67 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.2225, allocations: 93.11 kB / 353.4 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003758/0.2229, allocations: 279.1 kB / 353.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004284/0.2233, allocations: 282.9 kB / 354 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.414e-05/0.2234, allocations: 52 kB / 354 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002068/0.2236, allocations: 107.9 kB / 354.1 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001631/0.2238, allocations: 123.6 kB / 354.3 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002548/0.224, allocations: 211.1 kB / 354.5 MB, free: 9.543 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007203/0.2247, allocations: 0.5977 MB / 355.1 MB, free: 8.949 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2247, allocations: 0 / 355.1 MB, free: 8.949 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.2247, allocations: 0 / 355.1 MB, free: 8.949 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.2247, allocations: 0 / 355.1 MB, free: 8.949 MB / 318.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.001514/0.2263, allocations: 0.7272 MB / 355.8 MB, free: 8.191 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.2263, allocations: 11.98 kB / 355.8 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.2264, allocations: 48.66 kB / 355.8 MB, free: 8.133 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004814/0.2269, allocations: 277.1 kB / 356.1 MB, free: 7.836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.74e-05/0.2269, allocations: 37.38 kB / 356.2 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.468e-05/0.227, allocations: 36.38 kB / 356.2 MB, free: 7.766 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009434/0.2279, allocations: 478.6 kB / 356.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.3e-05/0.228, allocations: 7.953 kB / 356.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.849e-05/0.228, allocations: 16 kB / 356.7 MB, free: 7.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.228, allocations: 8 kB / 356.7 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.2291, allocations: 475.7 kB / 357.2 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002061/0.2311, allocations: 0.9239 MB / 358.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008638/0.232, allocations: 360.6 kB / 358.4 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005521/0.2325, allocations: 250.2 kB / 358.7 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.882e-05/0.2326, allocations: 8.5 kB / 358.7 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.2326, allocations: 35.06 kB / 358.7 MB, free: 5.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.044e-06/0.2326, allocations: 0 / 358.7 MB, free: 5.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005334/0.2379, allocations: 2.049 MB / 360.8 MB, free: 3.078 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.238, allocations: 55.91 kB / 360.8 MB, free: 3.012 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003059/0.2383, allocations: 265.9 kB / 361.1 MB, free: 2.742 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.064e-05/0.2383, allocations: 37.7 kB / 361.1 MB, free: 2.699 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.2385, allocations: 197.5 kB / 361.3 MB, free: 2.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000183/0.2387, allocations: 198.4 kB / 361.5 MB, free: 2.305 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001912/0.2389, allocations: 106.3 kB / 361.6 MB, free: 2.195 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.239, allocations: 342.8 kB / 361.9 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005136/0.2396, allocations: 245.2 kB / 362.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005615/0.2401, allocations: 288.8 kB / 362.5 MB, free: 1.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008303/0.2409, allocations: 414 kB / 362.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2409, allocations: 0 / 362.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001766/0.2427, allocations: 0.7875 MB / 363.7 MB, free: 116 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.2427, allocations: 4 kB / 363.7 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.2427, allocations: 0 / 363.7 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009761/0.2437, allocations: 0.5012 MB / 364.2 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003841/0.2441, allocations: 87.89 kB / 364.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.2456, allocations: 1.417 MB / 365.7 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005054/0.2461, allocations: 75.92 kB / 365.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.845e-05/0.2461, allocations: 16 kB / 365.7 MB, free: 13.96 MB / 334.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.0002343/0.2464, allocations: 177.6 kB / 365.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.037e-05/0.2464, allocations: 43.75 kB / 366 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001339/0.2466, allocations: 51.62 kB / 366 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.2466, allocations: 4 kB / 366 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.2466, allocations: 3.984 kB / 366 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.2466, allocations: 4 kB / 366 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002935/0.2495, allocations: 1.297 MB / 367.3 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.2495, allocations: 8.016 kB / 367.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004056/0.25, allocations: 79.91 kB / 367.4 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008555/0.2508, allocations: 485.3 kB / 367.9 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.843e-05/0.2509, allocations: 19.92 kB / 367.9 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001441/0.2523, allocations: 1.37 MB / 369.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.2523, allocations: 3.938 kB / 369.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002238/0.2545, allocations: 1.092 MB / 370.4 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002191/0.2548, allocations: 91.73 kB / 370.5 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.021e-05/0.2548, allocations: 20 kB / 370.5 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004443/0.2553, allocations: 51.94 kB / 370.5 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002323/0.2555, allocations: 104.2 kB / 370.6 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.051e-05/0.2556, allocations: 23.97 kB / 370.7 MB, free: 8.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002169/0.2558, allocations: 189.2 kB / 370.8 MB, free: 8.699 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2558, allocations: 0 / 370.8 MB, free: 8.699 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004987/0.2563, allocations: 135.9 kB / 371 MB, free: 8.566 MB / 334.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.0002388/0.2565, allocations: 139.1 kB / 371.1 MB, free: 8.422 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.2578, allocations: 0.5497 MB / 371.7 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2578, allocations: 0 / 371.7 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007715/0.2586, allocations: 335 kB / 372 MB, free: 7.547 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006041/0.2592, allocations: 81.19 kB / 372.1 MB, free: 7.465 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003857/0.2631, allocations: 1.433 MB / 373.5 MB, free: 5.988 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002314/0.2633, allocations: 220.8 kB / 373.7 MB, free: 5.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001458/0.2635, allocations: 39.27 kB / 373.8 MB, free: 5.711 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.2636, allocations: 36.48 kB / 373.8 MB, free: 5.676 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2636, allocations: 8 kB / 373.8 MB, free: 5.668 MB / 334.1 MB Notification: Performance of Templates: time 0.0153/0.2789, allocations: 8.476 MB / 382.3 MB, free: 13.17 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.582572520012036]