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.001031/0.001032, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001092/0.001092, allocations: 205.8 kB / 18.13 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 65.73 kB / 306.2 MB, free: 1.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09704/0.09819, allocations: 50.54 MB / 356.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.004318/0.1025, allocations: 3.683 MB / 360.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.104, allocations: 0.9511 MB / 361.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.1042, allocations: 8 kB / 361.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001893/0.1044, allocations: 63.47 kB / 361.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.1046, allocations: 138.8 kB / 361.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003533/0.105, allocations: 135.9 kB / 361.8 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005115/0.1055, allocations: 0.6033 MB / 362.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002552/0.1058, allocations: 162.3 kB / 362.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002716/0.106, allocations: 223.1 kB / 362.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002888/0.1063, allocations: 278.7 kB / 363 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.884e-05/0.1064, allocations: 32 kB / 363 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.1065, allocations: 40 kB / 363.1 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.273e-05/0.1066, allocations: 107.5 kB / 363.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002256/0.1068, allocations: 262.6 kB / 363.4 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004999/0.1074, allocations: 0.5957 MB / 364 MB, free: 7.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1074, allocations: 4 kB / 364 MB, free: 7.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1074, allocations: 0 / 364 MB, free: 7.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.1074, allocations: 0 / 364 MB, free: 7.25 MB / 302.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.001423/0.1088, allocations: 0.8379 MB / 364.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.1089, allocations: 12.03 kB / 364.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000198/0.1091, allocations: 68.27 kB / 365 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000388/0.1095, allocations: 346.6 kB / 365.3 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.1095, allocations: 37 kB / 365.3 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.22e-05/0.1096, allocations: 44 kB / 365.4 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000757/0.1103, allocations: 434.3 kB / 365.8 MB, free: 5.398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.1104, allocations: 0 / 365.8 MB, free: 5.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.077e-05/0.1104, allocations: 16 kB / 365.8 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.1104, allocations: 12 kB / 365.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007127/0.1112, allocations: 391.8 kB / 366.2 MB, free: 4.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00222/0.1134, allocations: 1.394 MB / 367.6 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007838/0.1142, allocations: 0.5081 MB / 368.1 MB, free: 3.016 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006246/0.1148, allocations: 344 kB / 368.5 MB, free: 2.676 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.697e-05/0.1149, allocations: 16.66 kB / 368.5 MB, free: 2.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.1149, allocations: 35.22 kB / 368.5 MB, free: 2.617 MB / 302.1 MB Notification: Performance of pre-optimization done (n=71): time 2.184e-06/0.1149, allocations: 0 / 368.5 MB, free: 2.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=107): time 0.1683/0.2832, allocations: 2.995 MB / 371.5 MB, free: 20.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.2833, allocations: 63.94 kB / 371.6 MB, free: 20.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002934/0.2836, allocations: 283.3 kB / 371.8 MB, free: 20.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.58e-05/0.2837, allocations: 41.89 kB / 371.9 MB, free: 20.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.786e-05/0.2838, allocations: 200.7 kB / 372.1 MB, free: 20.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001839/0.2839, allocations: 362.7 kB / 372.4 MB, free: 20.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001923/0.2841, allocations: 152 kB / 372.6 MB, free: 20.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.856e-05/0.2842, allocations: 365.8 kB / 372.9 MB, free: 19.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004178/0.2847, allocations: 237.5 kB / 373.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004747/0.2851, allocations: 316.8 kB / 373.5 MB, free: 19.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009268/0.2861, allocations: 0.5766 MB / 374.1 MB, free: 19.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.2861, allocations: 3.75 kB / 374.1 MB, free: 19.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.001158/0.2872, allocations: 0.7281 MB / 374.8 MB, free: 18.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.2873, allocations: 7.344 kB / 374.8 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.2873, allocations: 1.844 kB / 374.8 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.2873, allocations: 4.812 kB / 374.8 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007207/0.288, allocations: 201.1 kB / 375 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.2881, allocations: 4.844 kB / 375 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002889/0.2884, allocations: 32.72 kB / 375 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.997e-05/0.2884, allocations: 30.78 kB / 375.1 MB, free: 18.89 MB / 302.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.0001895/0.2886, allocations: 197.3 kB / 375.3 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.019e-05/0.2887, allocations: 61.88 kB / 375.3 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000143/0.2889, allocations: 77.78 kB / 375.4 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.2889, allocations: 9.625 kB / 375.4 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.151e-05/0.2889, allocations: 1.375 kB / 375.4 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.2889, allocations: 4.922 kB / 375.4 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002542/0.2915, allocations: 1.963 MB / 377.4 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.2915, allocations: 6.188 kB / 377.4 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007292/0.2922, allocations: 194.3 kB / 377.6 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.078e-05/0.2922, allocations: 12.55 kB / 377.6 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.658e-05/0.2923, allocations: 27.03 kB / 377.6 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.578e-06/0.2923, allocations: 9.562 kB / 377.6 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.2923, allocations: 11.66 kB / 377.6 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001533/0.2938, allocations: 1.289 MB / 378.9 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.009e-05/0.2939, allocations: 133.9 kB / 379 MB, free: 16.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.452e-05/0.294, allocations: 27.72 kB / 379.1 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003292/0.2944, allocations: 28.27 kB / 379.1 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.2945, allocations: 81.59 kB / 379.2 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.682e-05/0.2945, allocations: 34.66 kB / 379.2 MB, free: 16.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000166/0.2947, allocations: 196.7 kB / 379.4 MB, free: 16.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2947, allocations: 0 / 379.4 MB, free: 16.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004971/0.2952, allocations: 159.5 kB / 379.6 MB, free: 16.47 MB / 302.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.0001195/0.2953, allocations: 130.1 kB / 379.7 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009604/0.2963, allocations: 0.6698 MB / 380.4 MB, free: 16.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2963, allocations: 1.531 kB / 380.4 MB, free: 16.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005714/0.2969, allocations: 420.4 kB / 380.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007959/0.2977, allocations: 125.8 kB / 380.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/0.2997, allocations: 1.788 MB / 382.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.3, allocations: 0.8833 MB / 383.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000328/0.3004, allocations: 84 kB / 383.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001703/0.3005, allocations: 56.97 kB / 383.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3005, allocations: 0 / 383.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of Templates: time 0.01149/0.312, allocations: 6.497 MB / 390.2 MB, free: 12.3 MB / 302.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