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.001459/0.001459, allocations: 112.2 kB / 21.94 MB, free: 12 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.001746/0.001746, allocations: 200.8 kB / 25.24 MB, free: 3.539 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 2.011/2.011, allocations: 207.6 MB / 236 MB, free: 10.88 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.003134/0.003134, allocations: 51.92 kB / 348.4 MB, free: 9.648 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3565, allocations: 49.16 MB / 397.6 MB, free: 9.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004415/0.3609, allocations: 3.052 MB / 400.7 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001889/0.3628, allocations: 0.9849 MB / 401.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002011/0.363, allocations: 9.375 kB / 401.7 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000274/0.3633, allocations: 72.91 kB / 401.7 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002617/0.3636, allocations: 136.5 kB / 401.9 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006164/0.3642, allocations: 223.1 kB / 402.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005881/0.3648, allocations: 0.6354 MB / 402.7 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.365, allocations: 95.95 kB / 402.8 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003442/0.3653, allocations: 288.6 kB / 403.1 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003766/0.3657, allocations: 309.8 kB / 403.4 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.826e-05/0.3658, allocations: 48.41 kB / 403.4 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002015/0.366, allocations: 100.2 kB / 403.5 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.3661, allocations: 124 kB / 403.7 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001939/0.3663, allocations: 256.8 kB / 403.9 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006779/0.3669, allocations: 0.5928 MB / 404.5 MB, free: 5.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.367, allocations: 0 / 404.5 MB, free: 5.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.367, allocations: 4 kB / 404.5 MB, free: 5.336 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.367, allocations: 1.188 kB / 404.5 MB, free: 5.336 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.001361/0.3683, allocations: 0.7283 MB / 405.2 MB, free: 4.836 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.3684, allocations: 12.83 kB / 405.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001131/0.3685, allocations: 50.16 kB / 405.3 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004965/0.369, allocations: 265.2 kB / 405.6 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.765e-05/0.369, allocations: 38.31 kB / 405.6 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.474e-05/0.3691, allocations: 38.16 kB / 405.6 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008922/0.37, allocations: 478.7 kB / 406.1 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.61e-05/0.37, allocations: 10.86 kB / 406.1 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.653e-05/0.3701, allocations: 15 kB / 406.1 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.3701, allocations: 11 kB / 406.1 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009926/0.3711, allocations: 480.4 kB / 406.6 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002148/0.3732, allocations: 1.078 MB / 407.7 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007697/0.374, allocations: 364.2 kB / 408 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004856/0.3745, allocations: 253.2 kB / 408.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.699e-05/0.3745, allocations: 6.312 kB / 408.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.3745, allocations: 37.69 kB / 408.3 MB, free: 3.371 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.983e-06/0.3745, allocations: 0 / 408.3 MB, free: 3.371 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.004808/0.3793, allocations: 2.036 MB / 410.4 MB, free: 2.359 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.106e-05/0.3794, allocations: 61.38 kB / 410.4 MB, free: 2.293 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.3796, allocations: 288.5 kB / 410.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.655e-05/0.3797, allocations: 39.27 kB / 410.7 MB, free: 2.059 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.906e-05/0.3798, allocations: 186.1 kB / 410.9 MB, free: 1.887 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.3799, allocations: 208.8 kB / 411.1 MB, free: 1.703 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.3801, allocations: 114.3 kB / 411.2 MB, free: 1.629 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.632e-05/0.3801, allocations: 346.5 kB / 411.6 MB, free: 1.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004534/0.3806, allocations: 240.4 kB / 411.8 MB, free: 1.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004589/0.381, allocations: 287.9 kB / 412.1 MB, free: 1.031 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000703/0.3817, allocations: 412.6 kB / 412.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3817, allocations: 1.188 kB / 412.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00151/0.3832, allocations: 0.7834 MB / 413.3 MB, free: 448 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.3833, allocations: 6.188 kB / 413.3 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.3833, allocations: 0 / 413.3 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008694/0.3841, allocations: 0.4961 MB / 413.8 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003505/0.3845, allocations: 91.36 kB / 413.9 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00147/0.386, allocations: 1.413 MB / 415.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005078/0.3865, allocations: 74.97 kB / 415.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.271e-05/0.3865, allocations: 21.02 kB / 415.4 MB, free: 14.9 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.0003217/0.3869, allocations: 175.4 kB / 415.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.586e-05/0.3869, allocations: 39.33 kB / 415.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001398/0.3871, allocations: 55.17 kB / 415.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.3871, allocations: 9.969 kB / 415.7 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/0.3871, allocations: 0 / 415.7 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.3871, allocations: 9.562 kB / 415.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003032/0.3902, allocations: 1.419 MB / 417.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.958e-05/0.3902, allocations: 6.625 kB / 417.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004214/0.3906, allocations: 83.7 kB / 417.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008638/0.3915, allocations: 479.6 kB / 417.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.877e-05/0.3915, allocations: 17.89 kB / 417.7 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00141/0.3929, allocations: 1.374 MB / 419 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/0.3929, allocations: 5.344 kB / 419 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002121/0.395, allocations: 1.085 MB / 420.1 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002602/0.3953, allocations: 93.05 kB / 420.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.354e-05/0.3954, allocations: 24.44 kB / 420.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000401/0.3958, allocations: 57.86 kB / 420.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000213/0.396, allocations: 102.2 kB / 420.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.597e-05/0.3961, allocations: 20.64 kB / 420.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002367/0.3963, allocations: 205.8 kB / 420.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3963, allocations: 4 kB / 420.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005745/0.3969, allocations: 130.9 kB / 420.7 MB, free: 11.24 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.0002589/0.3971, allocations: 139.9 kB / 420.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.3984, allocations: 0.5549 MB / 421.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3984, allocations: 1.344 kB / 421.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007018/0.3991, allocations: 319.1 kB / 421.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006051/0.3997, allocations: 88.44 kB / 421.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00388/0.4036, allocations: 1.469 MB / 423.3 MB, free: 9.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004866/0.4041, allocations: 0.8202 MB / 424.1 MB, free: 8.316 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.4042, allocations: 43.42 kB / 424.2 MB, free: 8.273 MB / 334.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4042, allocations: 0 / 424.2 MB, free: 8.273 MB / 334.1 MB Notification: Performance of Templates: time 0.01333/0.4176, allocations: 8.626 MB / 432.8 MB, free: 15.63 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/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: 9.703018918866292]