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.001805/0.001805, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.001625/0.001625, allocations: 210.9 kB / 24.47 MB, free: 3.547 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.509/1.509, allocations: 207.7 MB / 235.3 MB, free: 9.809 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.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.001848/0.001848, allocations: 63.8 kB / 347.7 MB, free: 9.395 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2616, allocations: 49.15 MB / 396.8 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004079/0.2657, allocations: 2.823 MB / 399.7 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001766/0.2674, allocations: 0.944 MB / 400.6 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000205/0.2676, allocations: 9.125 kB / 400.6 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002871/0.2679, allocations: 77.44 kB / 400.7 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002716/0.2682, allocations: 132.2 kB / 400.8 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007312/0.2689, allocations: 231.2 kB / 401.1 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006303/0.2696, allocations: 0.6371 MB / 401.7 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002063/0.2698, allocations: 90.02 kB / 401.8 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004906/0.2703, allocations: 286 kB / 402.1 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003575/0.2706, allocations: 272.6 kB / 402.3 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.638e-05/0.2707, allocations: 52.72 kB / 402.4 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002127/0.2709, allocations: 104 kB / 402.5 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.2711, allocations: 122.4 kB / 402.6 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002073/0.2713, allocations: 215.9 kB / 402.8 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007519/0.272, allocations: 0.605 MB / 403.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.272, allocations: 0 / 403.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.272, allocations: 0 / 403.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.272, allocations: 0 / 403.4 MB, free: 5.555 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.001434/0.2735, allocations: 0.7136 MB / 404.1 MB, free: 5.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.2735, allocations: 14.19 kB / 404.1 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.2736, allocations: 56.8 kB / 404.2 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005133/0.2741, allocations: 270.2 kB / 404.5 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.955e-05/0.2742, allocations: 29.97 kB / 404.5 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.192e-05/0.2743, allocations: 42.98 kB / 404.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009312/0.2752, allocations: 478.6 kB / 405 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.77e-05/0.2752, allocations: 6.984 kB / 405 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.257e-05/0.2753, allocations: 16.38 kB / 405 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.142e-05/0.2753, allocations: 9.219 kB / 405 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009459/0.2762, allocations: 477 kB / 405.5 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001871/0.2781, allocations: 0.9225 MB / 406.4 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007836/0.2789, allocations: 363.3 kB / 406.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004776/0.2794, allocations: 245.9 kB / 407 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.136e-05/0.2794, allocations: 5.938 kB / 407 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.2794, allocations: 42.5 kB / 407.1 MB, free: 3.664 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.914e-06/0.2794, allocations: 0 / 407.1 MB, free: 3.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005006/0.2845, allocations: 2.038 MB / 409.1 MB, free: 2.707 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.125e-05/0.2845, allocations: 57.59 kB / 409.2 MB, free: 2.645 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002701/0.2848, allocations: 263.5 kB / 409.4 MB, free: 2.469 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.333e-05/0.2848, allocations: 46.64 kB / 409.5 MB, free: 2.422 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.2849, allocations: 194 kB / 409.6 MB, free: 2.242 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001304/0.2851, allocations: 201.6 kB / 409.8 MB, free: 2.066 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/0.2852, allocations: 105.5 kB / 409.9 MB, free: 2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.553e-05/0.2853, allocations: 346.5 kB / 410.3 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004514/0.2858, allocations: 241.1 kB / 410.5 MB, free: 1.547 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004835/0.2862, allocations: 292.4 kB / 410.8 MB, free: 1.395 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007135/0.287, allocations: 420.5 kB / 411.2 MB, free: 1.191 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.287, allocations: 2.812 kB / 411.2 MB, free: 1.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00157/0.2885, allocations: 0.7788 MB / 412 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.2885, allocations: 5.594 kB / 412 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.2886, allocations: 7.938 kB / 412 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008858/0.2894, allocations: 0.4957 MB / 412.5 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003347/0.2898, allocations: 86.95 kB / 412.6 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001336/0.2911, allocations: 1.411 MB / 414 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005152/0.2916, allocations: 75.09 kB / 414.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-05/0.2917, allocations: 21.3 kB / 414.1 MB, free: 15.26 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.0003139/0.292, allocations: 171.5 kB / 414.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.214e-05/0.2921, allocations: 42.86 kB / 414.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001551/0.2922, allocations: 58.48 kB / 414.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.096e-06/0.2922, allocations: 5.812 kB / 414.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/0.2923, allocations: 0 / 414.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.2923, allocations: 3.984 kB / 414.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002891/0.2952, allocations: 1.283 MB / 415.7 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.83e-06/0.2952, allocations: 1.219 kB / 415.7 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003552/0.2955, allocations: 87.73 kB / 415.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008938/0.2964, allocations: 479.6 kB / 416.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.669e-05/0.2965, allocations: 25.25 kB / 416.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00145/0.2979, allocations: 1.372 MB / 417.6 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.335e-06/0.2979, allocations: 9.109 kB / 417.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002418/0.3003, allocations: 1.089 MB / 418.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003433/0.3007, allocations: 93.09 kB / 418.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.741e-05/0.3008, allocations: 18.97 kB / 418.8 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004184/0.3012, allocations: 67.58 kB / 418.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002198/0.3014, allocations: 98.72 kB / 419 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.997e-05/0.3015, allocations: 25.03 kB / 419 MB, free: 11.89 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003206/0.3018, allocations: 188.6 kB / 419.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3018, allocations: 0 / 419.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005509/0.3023, allocations: 134.3 kB / 419.3 MB, free: 11.74 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.0002543/0.3026, allocations: 139.8 kB / 419.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001419/0.304, allocations: 0.5591 MB / 420 MB, free: 11.39 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.304, allocations: 0 / 420 MB, free: 11.39 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007527/0.3048, allocations: 321.4 kB / 420.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006439/0.3054, allocations: 76.66 kB / 420.4 MB, free: 11.19 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003929/0.3093, allocations: 1.444 MB / 421.8 MB, free: 9.703 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.3096, allocations: 220.9 kB / 422.1 MB, free: 9.465 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001768/0.3098, allocations: 35.28 kB / 422.1 MB, free: 9.43 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.3099, allocations: 35.42 kB / 422.1 MB, free: 9.395 MB / 334.1 MB Notification: Performance of SimCode: time 1.433e-06/0.3099, allocations: 0 / 422.1 MB, free: 9.395 MB / 334.1 MB Notification: Performance of Templates: time 0.016/0.3259, allocations: 8.931 MB / 431.1 MB, free: 448 kB / 334.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: 5.2021713480353355]