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.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.001483/0.001483, allocations: 103.9 kB / 19.75 MB, free: 2.656 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.001461/0.001461, allocations: 194.9 kB / 22.93 MB, free: 5.484 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.443/1.443, allocations: 207.6 MB / 233.5 MB, free: 10.99 MB / 190.1 MB " [Timeout remaining time 178] 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.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_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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 59.92 kB / 345.4 MB, free: 10.45 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2594, allocations: 49.12 MB / 394.5 MB, free: 9.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004827/0.2643, allocations: 3.059 MB / 397.6 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00211/0.2664, allocations: 0.9848 MB / 398.6 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002276/0.2666, allocations: 4.5 kB / 398.6 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000286/0.2669, allocations: 69.47 kB / 398.6 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002807/0.2672, allocations: 139.8 kB / 398.8 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005732/0.2677, allocations: 222.7 kB / 399 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000536/0.2683, allocations: 0.6285 MB / 399.6 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002088/0.2685, allocations: 95.05 kB / 399.7 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000362/0.2688, allocations: 286.9 kB / 400 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004155/0.2693, allocations: 302.8 kB / 400.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.526e-05/0.2693, allocations: 47.97 kB / 400.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002324/0.2696, allocations: 101.9 kB / 400.4 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001517/0.2697, allocations: 128.1 kB / 400.6 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002348/0.27, allocations: 253.1 kB / 400.8 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008188/0.2708, allocations: 0.5912 MB / 401.4 MB, free: 5.262 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.2708, allocations: 1.062 kB / 401.4 MB, free: 5.262 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2708, allocations: 3.938 kB / 401.4 MB, free: 5.258 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.2708, allocations: 0 / 401.4 MB, free: 5.258 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.001296/0.2721, allocations: 0.7981 MB / 402.2 MB, free: 4.668 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.2721, allocations: 10.25 kB / 402.2 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.2722, allocations: 49 kB / 402.3 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.2727, allocations: 340.4 kB / 402.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.229e-05/0.2727, allocations: 30.53 kB / 402.6 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.031e-05/0.2728, allocations: 43.42 kB / 402.7 MB, free: 4.324 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008487/0.2736, allocations: 474.2 kB / 403.1 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/0.2737, allocations: 10.23 kB / 403.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.36e-05/0.2737, allocations: 16.12 kB / 403.1 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.2737, allocations: 13.97 kB / 403.2 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008912/0.2746, allocations: 476.1 kB / 403.6 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001838/0.2764, allocations: 1.112 MB / 404.7 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007116/0.2772, allocations: 369.2 kB / 405.1 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004614/0.2776, allocations: 250.2 kB / 405.3 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.056e-05/0.2777, allocations: 13.33 kB / 405.4 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.584e-05/0.2777, allocations: 42.31 kB / 405.4 MB, free: 3.086 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.974e-06/0.2777, allocations: 0 / 405.4 MB, free: 3.086 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.004534/0.2822, allocations: 2.335 MB / 407.7 MB, free: 1.816 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.404e-05/0.2822, allocations: 62.34 kB / 407.8 MB, free: 1.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002464/0.2825, allocations: 290.9 kB / 408.1 MB, free: 1.551 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.109e-05/0.2825, allocations: 39.05 kB / 408.1 MB, free: 1.512 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.275e-05/0.2826, allocations: 185 kB / 408.3 MB, free: 1.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.2827, allocations: 206.8 kB / 408.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/0.2829, allocations: 109 kB / 408.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.486e-05/0.2829, allocations: 347.1 kB / 408.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004141/0.2834, allocations: 243.4 kB / 409.2 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004386/0.2838, allocations: 293.4 kB / 409.5 MB, free: 496 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006638/0.2845, allocations: 412 kB / 409.9 MB, free: 300 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2845, allocations: 0 / 409.9 MB, free: 300 kB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001516/0.286, allocations: 0.7812 MB / 410.6 MB, free: 15.9 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.286, allocations: 4.906 kB / 410.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.286, allocations: 1.375 kB / 410.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000883/0.2869, allocations: 0.5026 MB / 411.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003272/0.2872, allocations: 88.27 kB / 411.2 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001408/0.2886, allocations: 1.404 MB / 412.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005016/0.2891, allocations: 75.75 kB / 412.7 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.357e-05/0.2892, allocations: 20.95 kB / 412.7 MB, free: 14.36 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.0002772/0.2894, allocations: 183.6 kB / 412.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.185e-05/0.2895, allocations: 42.47 kB / 413 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001273/0.2897, allocations: 55.48 kB / 413 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.2897, allocations: 5.719 kB / 413 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.2897, allocations: 1.125 kB / 413 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.2897, allocations: 3.984 kB / 413 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002927/0.2926, allocations: 1.454 MB / 414.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/0.2926, allocations: 5.844 kB / 414.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003492/0.293, allocations: 78.39 kB / 414.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008118/0.2938, allocations: 479.7 kB / 415 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.704e-05/0.2938, allocations: 25.78 kB / 415.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001375/0.2952, allocations: 1.375 MB / 416.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/0.2952, allocations: 5.156 kB / 416.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002099/0.2973, allocations: 1.087 MB / 417.5 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002634/0.2976, allocations: 169 kB / 417.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.166e-05/0.2977, allocations: 19.38 kB / 417.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003948/0.2981, allocations: 54.53 kB / 417.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002391/0.2983, allocations: 101 kB / 417.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.372e-05/0.2984, allocations: 25.25 kB / 417.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002568/0.2986, allocations: 200.2 kB / 418.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2986, allocations: 0 / 418.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005462/0.2992, allocations: 134.8 kB / 418.2 MB, free: 10.57 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.0002603/0.2994, allocations: 136.6 kB / 418.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.3007, allocations: 0.5648 MB / 418.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3007, allocations: 0 / 418.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007267/0.3015, allocations: 325.7 kB / 419.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005961/0.3021, allocations: 87.12 kB / 419.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003662/0.3057, allocations: 1.442 MB / 420.8 MB, free: 8.941 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004889/0.3062, allocations: 0.8202 MB / 421.6 MB, free: 8.098 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002122/0.3064, allocations: 43.25 kB / 421.6 MB, free: 8.059 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.3065, allocations: 35.44 kB / 421.7 MB, free: 8.023 MB / 334.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3065, allocations: 3.938 kB / 421.7 MB, free: 8.02 MB / 334.1 MB Notification: Performance of Templates: time 0.01693/0.3235, allocations: 10.38 MB / 432 MB, free: 13.62 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/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.810607721097767]