Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Backlash,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|elastoBacklash.phi_rel|elastoBacklash.w_rel|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash") translateModel(Modelica.Mechanics.Rotational.Examples.Backlash,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|elastoBacklash.phi_rel|elastoBacklash.w_rel|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 106.7 kB / 17.06 MB, free: 6.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 194.9 kB / 18 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 51.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2818, allocations: 49.42 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003413/0.2852, allocations: 2.444 MB / 403.2 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.2866, allocations: 0.7406 MB / 403.9 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.2867, allocations: 7.938 kB / 403.9 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001554/0.2869, allocations: 39.58 kB / 403.9 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002082/0.2871, allocations: 107.1 kB / 404 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000351/0.2875, allocations: 127.8 kB / 404.2 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000423/0.2879, allocations: 470.2 kB / 404.6 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002275/0.2882, allocations: 80.91 kB / 404.7 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000219/0.2884, allocations: 183.5 kB / 404.9 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002126/0.2886, allocations: 219.2 kB / 405.1 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.273e-05/0.2887, allocations: 36 kB / 405.1 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.546e-05/0.2887, allocations: 36 kB / 405.2 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.589e-05/0.2888, allocations: 83.8 kB / 405.3 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001495/0.289, allocations: 183.2 kB / 405.4 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003673/0.2893, allocations: 411.8 kB / 405.8 MB, free: 3.719 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2894, allocations: 0 / 405.8 MB, free: 3.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2894, allocations: 0 / 405.8 MB, free: 3.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.513e-06/0.2894, allocations: 0 / 405.8 MB, free: 3.719 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001385/0.2908, allocations: 0.6853 MB / 406.5 MB, free: 2.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.714e-05/0.2908, allocations: 11.97 kB / 406.5 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.273e-05/0.2909, allocations: 36.56 kB / 406.6 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003407/0.2912, allocations: 275.5 kB / 406.8 MB, free: 2.633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/0.2913, allocations: 84.27 kB / 406.9 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.41e-05/0.2914, allocations: 36 kB / 407 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008497/0.2923, allocations: 371.2 kB / 407.3 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.2923, allocations: 7.906 kB / 407.3 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.933e-05/0.2923, allocations: 15.98 kB / 407.3 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.2923, allocations: 8 kB / 407.3 MB, free: 2.098 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.2935, allocations: 397 kB / 407.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.2946, allocations: 0.9505 MB / 408.7 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009661/0.2956, allocations: 411.8 kB / 409.1 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005881/0.2962, allocations: 218.6 kB / 409.3 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.2963, allocations: 8 kB / 409.3 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/0.2963, allocations: 38.5 kB / 409.3 MB, free: 16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 1.643e-06/0.2963, allocations: 0 / 409.3 MB, free: 16 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.004513/0.3008, allocations: 2.324 MB / 411.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.861e-05/0.3009, allocations: 106.8 kB / 411.8 MB, free: 13.28 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002219/0.3011, allocations: 207.2 kB / 412 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.202e-05/0.3012, allocations: 33.7 kB / 412 MB, free: 13.03 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.3013, allocations: 148.6 kB / 412.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.264e-05/0.3014, allocations: 138 kB / 412.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.3015, allocations: 74.02 kB / 412.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3017, allocations: 338.8 kB / 412.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003038/0.302, allocations: 112.8 kB / 412.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003324/0.3023, allocations: 169.4 kB / 413 MB, free: 12.03 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006215/0.3029, allocations: 284.5 kB / 413.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.303, allocations: 4 kB / 413.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007921/0.3038, allocations: 370.1 kB / 413.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.3038, allocations: 4 kB / 413.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.3038, allocations: 96 / 413.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.3038, allocations: 8 kB / 413.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007033/0.3045, allocations: 147.8 kB / 413.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.3045, allocations: 7.938 kB / 413.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002242/0.3048, allocations: 23.97 kB / 413.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.252e-05/0.3048, allocations: 16 kB / 413.8 MB, free: 11.16 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001616/0.305, allocations: 153.7 kB / 414 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.434e-05/0.3051, allocations: 27.66 kB / 414 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.486e-05/0.3051, allocations: 37.52 kB / 414 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.3052, allocations: 4 kB / 414 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.3052, allocations: 3.938 kB / 414 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.3052, allocations: 0 / 414 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002245/0.3074, allocations: 1.327 MB / 415.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.3074, allocations: 4 kB / 415.4 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008244/0.3083, allocations: 171.9 kB / 415.5 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.3083, allocations: 4 kB / 415.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.547e-05/0.3083, allocations: 23.92 kB / 415.6 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.3083, allocations: 4 kB / 415.6 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.3084, allocations: 4.469 kB / 415.6 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001859/0.3102, allocations: 0.9529 MB / 416.5 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.3104, allocations: 128.8 kB / 416.6 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.609e-05/0.3104, allocations: 15.88 kB / 416.7 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004038/0.3108, allocations: 51.94 kB / 416.7 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.311, allocations: 39.89 kB / 416.8 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.241e-05/0.311, allocations: 12 kB / 416.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001371/0.3111, allocations: 160.6 kB / 416.9 MB, free: 7.895 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3111, allocations: 0 / 416.9 MB, free: 7.895 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004633/0.3116, allocations: 80 kB / 417 MB, free: 7.816 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (elastoBacklash2.phi_rel,elastoBacklash2.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001468/0.3118, allocations: 115.1 kB / 417.1 MB, free: 7.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009949/0.3128, allocations: 371.7 kB / 417.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3128, allocations: 0 / 417.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006317/0.3134, allocations: 248 kB / 417.7 MB, free: 7.086 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006771/0.3141, allocations: 73.47 kB / 417.8 MB, free: 7.016 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004675/0.3188, allocations: 1.425 MB / 419.2 MB, free: 5.535 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002987/0.3191, allocations: 0.7682 MB / 420 MB, free: 4.738 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001753/0.3193, allocations: 42.95 kB / 420 MB, free: 4.695 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.3194, allocations: 35.42 kB / 420.1 MB, free: 4.664 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3194, allocations: 0 / 420.1 MB, free: 4.664 MB / 334.1 MB Notification: Performance of Templates: time 0.007643/0.3271, allocations: 4.337 MB / 424.4 MB, free: 372 kB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches