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.001163/0.001163, allocations: 116.9 kB / 18.4 MB, free: 4.621 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: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00164/0.00164, allocations: 60.59 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1036, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.004811/0.1084, allocations: 3.646 MB / 362.5 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.1101, allocations: 0.9588 MB / 363.5 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.1103, allocations: 8 kB / 363.5 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000212/0.1105, allocations: 87.09 kB / 363.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002715/0.1108, allocations: 158.6 kB / 363.7 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004298/0.1113, allocations: 163.7 kB / 363.9 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005619/0.1118, allocations: 0.6306 MB / 364.5 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002776/0.1121, allocations: 185.5 kB / 364.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002788/0.1124, allocations: 251.1 kB / 365 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003059/0.1127, allocations: 286.8 kB / 365.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.337e-05/0.1128, allocations: 52 kB / 365.3 MB, free: 6.922 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.1129, allocations: 56 kB / 365.3 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.751e-05/0.113, allocations: 123.5 kB / 365.5 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002276/0.1132, allocations: 282.6 kB / 365.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005424/0.1138, allocations: 0.6266 MB / 366.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1138, allocations: 0 / 366.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1138, allocations: 0 / 366.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.1138, allocations: 0 / 366.4 MB, free: 5.84 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.001448/0.1153, allocations: 0.834 MB / 367.2 MB, free: 4.953 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.1153, allocations: 12.03 kB / 367.2 MB, free: 4.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001987/0.1155, allocations: 72.27 kB / 367.3 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004312/0.116, allocations: 346.6 kB / 367.6 MB, free: 4.488 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.008e-05/0.116, allocations: 37 kB / 367.7 MB, free: 4.453 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.946e-05/0.1161, allocations: 48 kB / 367.7 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000673/0.1168, allocations: 418.4 kB / 368.1 MB, free: 3.988 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.362e-05/0.1168, allocations: 7.984 kB / 368.1 MB, free: 3.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.193e-05/0.1168, allocations: 24 kB / 368.1 MB, free: 3.957 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.1169, allocations: 12 kB / 368.2 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006795/0.1175, allocations: 383.8 kB / 368.5 MB, free: 3.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002206/0.1198, allocations: 1.394 MB / 369.9 MB, free: 2.109 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007455/0.1205, allocations: 0.512 MB / 370.4 MB, free: 1.586 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006029/0.1211, allocations: 339.7 kB / 370.8 MB, free: 1.254 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.956e-05/0.1212, allocations: 16.62 kB / 370.8 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.1212, allocations: 43.16 kB / 370.8 MB, free: 1.188 MB / 302.1 MB Notification: Performance of pre-optimization done (n=71): time 3.196e-06/0.1212, allocations: 0 / 370.8 MB, free: 1.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=107): time 0.1771/0.2983, allocations: 2.987 MB / 373.8 MB, free: 19.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.2984, allocations: 64.28 kB / 373.9 MB, free: 19.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002821/0.2987, allocations: 284.9 kB / 374.2 MB, free: 19.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.2987, allocations: 44.05 kB / 374.2 MB, free: 19.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.2988, allocations: 205.1 kB / 374.4 MB, free: 19.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001978/0.299, allocations: 361.2 kB / 374.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002078/0.2992, allocations: 147.2 kB / 374.9 MB, free: 18.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.974e-05/0.2993, allocations: 366.2 kB / 375.3 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004317/0.2998, allocations: 238.5 kB / 375.5 MB, free: 18.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005148/0.3003, allocations: 318 kB / 375.8 MB, free: 18.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008645/0.3012, allocations: 0.5766 MB / 376.4 MB, free: 18.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3012, allocations: 1.938 kB / 376.4 MB, free: 18.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.001144/0.3023, allocations: 0.7328 MB / 377.1 MB, free: 17.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.3024, allocations: 5.25 kB / 377.1 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.3024, allocations: 4.5 kB / 377.1 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.3024, allocations: 7.703 kB / 377.1 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007669/0.3032, allocations: 200.8 kB / 377.3 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.3032, allocations: 3.781 kB / 377.3 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002876/0.3035, allocations: 31.94 kB / 377.4 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.239e-05/0.3036, allocations: 26.81 kB / 377.4 MB, free: 17.8 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.0002512/0.3038, allocations: 202.9 kB / 377.6 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.3039, allocations: 56.94 kB / 377.6 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001593/0.3041, allocations: 77.73 kB / 377.7 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.3041, allocations: 11.98 kB / 377.7 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.978e-05/0.3041, allocations: 0 / 377.7 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/0.3042, allocations: 7.781 kB / 377.7 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002612/0.3068, allocations: 1.94 MB / 379.7 MB, free: 16.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/0.3068, allocations: 3.781 kB / 379.7 MB, free: 16.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007512/0.3076, allocations: 192.4 kB / 379.9 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.67e-05/0.3076, allocations: 12.16 kB / 379.9 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.414e-05/0.3076, allocations: 30.81 kB / 379.9 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.166e-05/0.3077, allocations: 8.688 kB / 379.9 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/0.3077, allocations: 9.344 kB / 379.9 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001518/0.3092, allocations: 1.29 MB / 381.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.962e-05/0.3093, allocations: 127.4 kB / 381.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.179e-05/0.3094, allocations: 27.58 kB / 381.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003236/0.3097, allocations: 28.97 kB / 381.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.3099, allocations: 80.41 kB / 381.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.639e-05/0.3099, allocations: 31.08 kB / 381.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001889/0.3101, allocations: 196.7 kB / 381.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3101, allocations: 1.219 kB / 381.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000518/0.3107, allocations: 158 kB / 381.9 MB, free: 15.41 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.0001485/0.3108, allocations: 144.2 kB / 382 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.3119, allocations: 0.672 MB / 382.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.3119, allocations: 6.328 kB / 382.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005741/0.3125, allocations: 414.6 kB / 383.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007547/0.3132, allocations: 141.5 kB / 383.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.3153, allocations: 1.543 MB / 384.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.3156, allocations: 0.879 MB / 385.6 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002937/0.3159, allocations: 83.31 kB / 385.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001603/0.3161, allocations: 62.89 kB / 385.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3161, allocations: 0 / 385.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of Templates: time 0.01241/0.3285, allocations: 6.959 MB / 392.7 MB, free: 11.2 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 -s cvode -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/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_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,friction.v_rel,innerContactA.s_rel,innerContactB.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel Variables in the result:fixedLe.flange.s,fixedLe.s0,friction.d,friction.flange_a.s,friction.s_nominal,friction.v_rel,housing.L,housing.flange_a.s,innerContactA.c,innerContactA.d,innerContactA.f_ref,innerContactA.n,innerContactA.s_nominal,innerContactA.s_ref,innerContactA.s_rel,innerContactA.s_rel0,innerContactB.c,innerContactB.d,innerContactB.f_ref,innerContactB.n,innerContactB.s_nominal,innerContactB.s_ref,innerContactB.s_rel,innerContactB.s_rel0,outerContactA.c,outerContactA.d,outerContactA.f_ref,outerContactA.flange_a.s,outerContactA.n,outerContactA.s_nominal,outerContactA.s_ref,outerContactA.s_rel0,outerContactA.v_rel,outerContactB.c,outerContactB.d,outerContactB.f_ref,outerContactB.n,outerContactB.s_nominal,outerContactB.s_ref,outerContactB.s_rel,outerContactB.s_rel0,outerContactB.v_rel,rod1.L,rod2.L,rod3.L,rod4.L,sineForce.amplitude,sineForce.continuous,sineForce.f,sineForce.offset,sineForce.phase,sineForce.startTime,spool.L,spool.m,spool.stateSelect,spring.c,spring.s_rel0,springPlateA.L,springPlateA.m,springPlateA.stateSelect,springPlateB.L,springPlateB.m,springPlateB.stateSelect,time