Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.PreLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|friction.v_rel|innerContactA.s_rel|innerContactB.s_rel|outerContactA.v_rel|outerContactB.s_rel|outerContactB.v_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad") translateModel(Modelica.Mechanics.Translational.Examples.PreLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|friction.v_rel|innerContactA.s_rel|innerContactB.s_rel|outerContactA.v_rel|outerContactB.s_rel|outerContactB.v_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001092/0.001092, allocations: 117.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001223/0.001223, allocations: 204.6 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 59.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.271, allocations: 50.55 MB / 409.2 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.004701/0.2758, allocations: 3.648 MB / 412.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.2776, allocations: 0.9393 MB / 413.8 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001848/0.2778, allocations: 11.94 kB / 413.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002131/0.278, allocations: 83.16 kB / 413.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002728/0.2783, allocations: 166.5 kB / 414.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004475/0.2787, allocations: 163.7 kB / 414.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005917/0.2793, allocations: 0.6228 MB / 414.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003106/0.2797, allocations: 197.4 kB / 415.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003348/0.28, allocations: 255.2 kB / 415.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003322/0.2804, allocations: 286.8 kB / 415.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.861e-05/0.2804, allocations: 52 kB / 415.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.2805, allocations: 52 kB / 415.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.645e-05/0.2806, allocations: 123.6 kB / 415.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002248/0.2809, allocations: 286.6 kB / 416.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005609/0.2814, allocations: 0.62 MB / 416.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2815, allocations: 0 / 416.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.2815, allocations: 8 kB / 416.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.2815, allocations: 0 / 416.7 MB, free: 10.09 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001465/0.2829, allocations: 0.8339 MB / 417.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.283, allocations: 12.03 kB / 417.6 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002001/0.2832, allocations: 64.19 kB / 417.6 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004884/0.2837, allocations: 358.6 kB / 418 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.685e-05/0.2837, allocations: 37 kB / 418 MB, free: 8.699 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.416e-05/0.2838, allocations: 51.91 kB / 418.1 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007222/0.2846, allocations: 418.4 kB / 418.5 MB, free: 8.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.2846, allocations: 3.938 kB / 418.5 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.559e-05/0.2846, allocations: 23.98 kB / 418.5 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.2847, allocations: 12 kB / 418.5 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006815/0.2854, allocations: 387.8 kB / 418.9 MB, free: 7.812 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002224/0.2876, allocations: 1.378 MB / 420.3 MB, free: 6.375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007696/0.2884, allocations: 0.5148 MB / 420.8 MB, free: 5.844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006449/0.289, allocations: 344.1 kB / 421.1 MB, free: 5.504 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.717e-05/0.2891, allocations: 16.64 kB / 421.1 MB, free: 5.488 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.2891, allocations: 39.22 kB / 421.2 MB, free: 5.441 MB / 334.1 MB Notification: Performance of pre-optimization done (n=71): time 2.004e-06/0.2891, allocations: 0 / 421.2 MB, free: 5.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=107): time 0.006324/0.2955, allocations: 3.006 MB / 424.2 MB, free: 2.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.2955, allocations: 68.34 kB / 424.2 MB, free: 2.285 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002779/0.2958, allocations: 280.5 kB / 424.5 MB, free: 2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.33e-05/0.2959, allocations: 45.7 kB / 424.6 MB, free: 1.949 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.296, allocations: 209.3 kB / 424.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002688/0.2963, allocations: 358.6 kB / 425.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001886/0.2965, allocations: 150.7 kB / 425.3 MB, free: 1.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.2966, allocations: 366.8 kB / 425.6 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003957/0.297, allocations: 237.9 kB / 425.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004449/0.2975, allocations: 317.4 kB / 426.2 MB, free: 320 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008729/0.2984, allocations: 0.5728 MB / 426.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2984, allocations: 3.938 kB / 426.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.001096/0.2995, allocations: 0.735 MB / 427.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.2995, allocations: 4 kB / 427.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2995, allocations: 0 / 427.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.2996, allocations: 12.05 kB / 427.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007336/0.3003, allocations: 203.7 kB / 427.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.3003, allocations: 4 kB / 427.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002834/0.3006, allocations: 35.92 kB / 427.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.381e-05/0.3007, allocations: 24 kB / 427.8 MB, free: 14.71 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (outerContactB.contact,outerContactA.contact,innerContactB.contact,innerContactA.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 117 * 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.0002279/0.3009, allocations: 201.5 kB / 427.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.271e-05/0.301, allocations: 59.34 kB / 428 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001764/0.3012, allocations: 81.62 kB / 428.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.3012, allocations: 8 kB / 428.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.3012, allocations: 0 / 428.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.3012, allocations: 11.97 kB / 428.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002714/0.3039, allocations: 1.936 MB / 430 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.304, allocations: 7.938 kB / 430.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007416/0.3047, allocations: 191.7 kB / 430.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.101e-05/0.3047, allocations: 12 kB / 430.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.584e-05/0.3048, allocations: 24.58 kB / 430.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.448e-06/0.3048, allocations: 8 kB / 430.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.666e-06/0.3048, allocations: 19.92 kB / 430.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001744/0.3066, allocations: 1.29 MB / 431.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.3067, allocations: 124.5 kB / 431.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.886e-05/0.3068, allocations: 28.05 kB / 431.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003261/0.3071, allocations: 31.98 kB / 431.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.3073, allocations: 76.8 kB / 431.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.193e-05/0.3073, allocations: 31.98 kB / 431.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001738/0.3075, allocations: 195.1 kB / 432.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3075, allocations: 0 / 432.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004771/0.308, allocations: 160 kB / 432.2 MB, free: 10.02 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 107 * 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.0001654/0.3081, allocations: 139 kB / 432.4 MB, free: 9.875 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001059/0.3092, allocations: 0.6723 MB / 433 MB, free: 9.203 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.3092, allocations: 0 / 433 MB, free: 9.203 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006182/0.3099, allocations: 418.4 kB / 433.4 MB, free: 8.793 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008876/0.3107, allocations: 143.4 kB / 433.6 MB, free: 8.656 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002515/0.3133, allocations: 1.54 MB / 435.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005112/0.3138, allocations: 0.8803 MB / 436 MB, free: 6.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003172/0.3141, allocations: 85.2 kB / 436.1 MB, free: 6.031 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001601/0.3143, allocations: 59.42 kB / 436.1 MB, free: 5.977 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3143, allocations: 0 / 436.1 MB, free: 5.977 MB / 350.1 MB Notification: Performance of Templates: time 0.01237/0.3267, allocations: 7.121 MB / 443.3 MB, free: 14.93 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/PreLoad/PreLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches