Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.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.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_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 116.2 kB / 17.75 MB, free: 5.203 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.001231/0.001231, allocations: 188.4 kB / 18.67 MB, free: 4.285 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.321/1.321, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001068/0.001068, allocations: 47.92 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2673, allocations: 49.43 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.004713/0.2721, allocations: 3.551 MB / 404.9 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.2738, allocations: 0.884 MB / 405.8 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004396/0.2743, allocations: 8 kB / 405.8 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002851/0.2746, allocations: 83.16 kB / 405.9 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000388/0.275, allocations: 138.7 kB / 406.1 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00046/0.2755, allocations: 159.6 kB / 406.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006101/0.2761, allocations: 0.588 MB / 406.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003026/0.2764, allocations: 189.5 kB / 407 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000321/0.2767, allocations: 247.1 kB / 407.2 MB, free: 3.027 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003424/0.2771, allocations: 270.9 kB / 407.5 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.078e-05/0.2772, allocations: 59.94 kB / 407.5 MB, free: 2.703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.634e-05/0.2773, allocations: 48 kB / 407.6 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.069e-05/0.2774, allocations: 123.6 kB / 407.7 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002244/0.2776, allocations: 270.7 kB / 408 MB, free: 2.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005157/0.2781, allocations: 0.5967 MB / 408.6 MB, free: 1.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2781, allocations: 0 / 408.6 MB, free: 1.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2781, allocations: 0 / 408.6 MB, free: 1.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.423e-05/0.2782, allocations: 0 / 408.6 MB, free: 1.676 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001574/0.2797, allocations: 0.8419 MB / 409.4 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.2798, allocations: 8.031 kB / 409.4 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.2799, allocations: 60.28 kB / 409.5 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004163/0.2803, allocations: 331.2 kB / 409.8 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.027e-05/0.2804, allocations: 33.38 kB / 409.8 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.043e-05/0.2805, allocations: 52.38 kB / 409.9 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008456/0.2813, allocations: 454.7 kB / 410.3 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.2813, allocations: 0 / 410.3 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.98e-05/0.2814, allocations: 16 kB / 410.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.2814, allocations: 12 kB / 410.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009274/0.2823, allocations: 463.6 kB / 410.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002124/0.2845, allocations: 1.378 MB / 412.2 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008936/0.2854, allocations: 0.5364 MB / 412.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007439/0.2861, allocations: 379.7 kB / 413.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.313e-05/0.2862, allocations: 12.55 kB / 413.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/0.2862, allocations: 35.12 kB / 413.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 1.693e-06/0.2862, allocations: 0 / 413.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=103): time 0.006624/0.2928, allocations: 3.131 MB / 416.3 MB, free: 9.707 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.469e-05/0.2929, allocations: 68.41 kB / 416.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002286/0.2931, allocations: 254.9 kB / 416.6 MB, free: 9.375 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.46e-05/0.2932, allocations: 41.7 kB / 416.6 MB, free: 9.328 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.2933, allocations: 197.3 kB / 416.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002302/0.2936, allocations: 346.8 kB / 417.2 MB, free: 8.789 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.2937, allocations: 146.7 kB / 417.3 MB, free: 8.641 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.2939, allocations: 366.8 kB / 417.7 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005382/0.2944, allocations: 269.9 kB / 417.9 MB, free: 8.008 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005794/0.295, allocations: 353.4 kB / 418.3 MB, free: 7.656 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.2961, allocations: 0.6117 MB / 418.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2961, allocations: 7.938 kB / 418.9 MB, free: 7.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001387/0.2975, allocations: 0.7819 MB / 419.7 MB, free: 6.238 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.2976, allocations: 8 kB / 419.7 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.2976, allocations: 64 / 419.7 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.2976, allocations: 11.94 kB / 419.7 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007611/0.2984, allocations: 207.7 kB / 419.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/0.2984, allocations: 4 kB / 419.9 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003287/0.2987, allocations: 55.83 kB / 420 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.875e-05/0.2988, allocations: 28 kB / 420 MB, free: 5.93 MB / 334.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 (113): * Single equations (assignments): 113 * 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.0002251/0.299, allocations: 193.7 kB / 420.2 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.157e-05/0.2991, allocations: 55.34 kB / 420.2 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001719/0.2993, allocations: 77.33 kB / 420.3 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.2993, allocations: 8 kB / 420.3 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.2993, allocations: 4 kB / 420.3 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.2993, allocations: 7.984 kB / 420.3 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002867/0.3022, allocations: 1.983 MB / 422.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.3022, allocations: 4 kB / 422.3 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007554/0.303, allocations: 199.7 kB / 422.5 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.259e-05/0.303, allocations: 8 kB / 422.5 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.411e-05/0.3031, allocations: 35.92 kB / 422.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.298e-06/0.3031, allocations: 11.94 kB / 422.6 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.3031, allocations: 4.312 kB / 422.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002102/0.3052, allocations: 1.372 MB / 423.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.3053, allocations: 132.5 kB / 424.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.67e-05/0.3054, allocations: 23.94 kB / 424.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003717/0.3058, allocations: 47.95 kB / 424.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.3059, allocations: 76.8 kB / 424.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.521e-05/0.306, allocations: 35.98 kB / 424.2 MB, free: 1.445 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001438/0.3061, allocations: 174 kB / 424.4 MB, free: 1.273 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3061, allocations: 0 / 424.4 MB, free: 1.273 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004769/0.3066, allocations: 156 kB / 424.6 MB, free: 1.121 MB / 334.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 (103): * Single equations (assignments): 103 * 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.0001626/0.3068, allocations: 135 kB / 424.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.3081, allocations: 0.7347 MB / 425.4 MB, free: 252 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.411e-06/0.3081, allocations: 4 kB / 425.4 MB, free: 248 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007506/0.3089, allocations: 445.5 kB / 425.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007477/0.3096, allocations: 132.4 kB / 426 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.3121, allocations: 1.553 MB / 427.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004294/0.3125, allocations: 0.8723 MB / 428.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/0.3127, allocations: 63.42 kB / 428.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3128, allocations: 0 / 428.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of Templates: time 0.01026/0.323, allocations: 7.4 MB / 435.9 MB, free: 5.668 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/PreLoad/PreLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches