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.001592/0.001592, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001674/0.001674, allocations: 192 kB / 18.62 MB, free: 4.434 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.324/1.324, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00093/0.00093, allocations: 42.66 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08813/0.08907, allocations: 49.44 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.00488/0.09399, allocations: 3.533 MB / 355 MB, free: 156 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.09548, allocations: 0.8723 MB / 355.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001945/0.09569, allocations: 8 kB / 355.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002321/0.09593, allocations: 79.11 kB / 356 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002778/0.09624, allocations: 146.7 kB / 356.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000471/0.09672, allocations: 155.7 kB / 356.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006109/0.09734, allocations: 0.5957 MB / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003373/0.09768, allocations: 189.5 kB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002705/0.09796, allocations: 235.2 kB / 357.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003096/0.09828, allocations: 278.8 kB / 357.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.051e-05/0.09836, allocations: 52 kB / 357.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.09847, allocations: 52 kB / 357.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.09858, allocations: 119.6 kB / 357.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002429/0.09883, allocations: 266.7 kB / 358 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005318/0.09936, allocations: 0.5955 MB / 358.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.09938, allocations: 4 kB / 358.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.09939, allocations: 0 / 358.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.0994, allocations: 0 / 358.6 MB, free: 12.52 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001694/0.1011, allocations: 0.8381 MB / 359.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.1011, allocations: 8.031 kB / 359.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.003e-05/0.1012, allocations: 60.28 kB / 359.5 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004493/0.1017, allocations: 339.1 kB / 359.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/0.1017, allocations: 37.38 kB / 359.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.77e-05/0.1018, allocations: 48.38 kB / 360 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008762/0.1027, allocations: 450.7 kB / 360.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.891e-05/0.1028, allocations: 19.89 kB / 360.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.317e-05/0.1028, allocations: 16 kB / 360.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.1028, allocations: 8 kB / 360.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.1038, allocations: 459.6 kB / 360.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002338/0.1062, allocations: 1.378 MB / 362.3 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000947/0.1071, allocations: 0.5363 MB / 362.8 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007568/0.1079, allocations: 379.7 kB / 363.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.846e-05/0.108, allocations: 8.562 kB / 363.2 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.592e-05/0.108, allocations: 39.12 kB / 363.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.234e-06/0.108, allocations: 0 / 363.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=103): time 0.006986/0.115, allocations: 3.139 MB / 366.4 MB, free: 4.531 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.416e-05/0.1151, allocations: 60.41 kB / 366.4 MB, free: 4.457 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002875/0.1154, allocations: 251 kB / 366.7 MB, free: 4.203 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.43e-05/0.1155, allocations: 41.7 kB / 366.7 MB, free: 4.156 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.1156, allocations: 197.2 kB / 366.9 MB, free: 3.957 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002394/0.1158, allocations: 358.8 kB / 367.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001939/0.116, allocations: 138.7 kB / 367.4 MB, free: 3.461 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1162, allocations: 362.8 kB / 367.7 MB, free: 3.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005563/0.1168, allocations: 277.8 kB / 368 MB, free: 2.828 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005978/0.1174, allocations: 349.4 kB / 368.4 MB, free: 2.477 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/0.1185, allocations: 0.6156 MB / 369 MB, free: 1.855 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.1185, allocations: 4 kB / 369 MB, free: 1.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001379/0.1199, allocations: 0.7897 MB / 369.8 MB, free: 1.051 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.12, allocations: 4 kB / 369.8 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.12, allocations: 0 / 369.8 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/0.12, allocations: 15.81 kB / 369.8 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000842/0.1208, allocations: 211.8 kB / 370 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.1209, allocations: 4 kB / 370 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003554/0.1212, allocations: 43.95 kB / 370 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.417e-05/0.1213, allocations: 31.98 kB / 370.1 MB, free: 0.7461 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 (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.0002426/0.1215, allocations: 197.6 kB / 370.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.575e-05/0.1216, allocations: 51.44 kB / 370.3 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000155/0.1218, allocations: 77.33 kB / 370.4 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.1218, allocations: 12 kB / 370.4 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.1218, allocations: 0 / 370.4 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.1218, allocations: 3.984 kB / 370.4 MB, free: 408 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1464/0.2683, allocations: 1.974 MB / 372.4 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.447e-06/0.2683, allocations: 8.688 kB / 372.4 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008533/0.2692, allocations: 204.1 kB / 372.6 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.556e-05/0.2692, allocations: 11.78 kB / 372.6 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.474e-05/0.2693, allocations: 26.5 kB / 372.6 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.287e-05/0.2693, allocations: 9.734 kB / 372.6 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.2693, allocations: 9.594 kB / 372.6 MB, free: 25.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002118/0.2714, allocations: 1.376 MB / 374 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.2715, allocations: 127.6 kB / 374.1 MB, free: 24.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.342e-05/0.2716, allocations: 22.44 kB / 374.2 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003945/0.272, allocations: 45.42 kB / 374.2 MB, free: 24.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.2721, allocations: 79.38 kB / 374.3 MB, free: 24.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.742e-05/0.2722, allocations: 34.05 kB / 374.3 MB, free: 24.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001465/0.2723, allocations: 175.5 kB / 374.5 MB, free: 24.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2724, allocations: 3.438 kB / 374.5 MB, free: 24.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000478/0.2728, allocations: 154.2 kB / 374.6 MB, free: 24.57 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 (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.0001232/0.273, allocations: 132.8 kB / 374.8 MB, free: 24.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.2743, allocations: 0.7346 MB / 375.5 MB, free: 24.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2743, allocations: 0 / 375.5 MB, free: 24.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000688/0.275, allocations: 454.4 kB / 376 MB, free: 24.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007108/0.2757, allocations: 131.1 kB / 376.1 MB, free: 24.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002128/0.2779, allocations: 1.511 MB / 377.6 MB, free: 23.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.2782, allocations: 0.8684 MB / 378.5 MB, free: 22.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000304/0.2785, allocations: 77.75 kB / 378.5 MB, free: 22.4 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.2787, allocations: 60.09 kB / 378.6 MB, free: 22.39 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2787, allocations: 0 / 378.6 MB, free: 22.39 MB / 302.1 MB Notification: Performance of Templates: time 0.01257/0.2913, allocations: 6.507 MB / 385.1 MB, free: 20.91 MB / 302.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 -s cvode -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) "" 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.n,innerContactA.s_nominal,innerContactA.s_rel,innerContactA.s_rel0,innerContactB.c,innerContactB.d,innerContactB.n,innerContactB.s_nominal,innerContactB.s_rel,innerContactB.s_rel0,outerContactA.c,outerContactA.d,outerContactA.flange_a.s,outerContactA.n,outerContactA.s_nominal,outerContactA.s_rel0,outerContactA.v_rel,outerContactB.c,outerContactB.d,outerContactB.n,outerContactB.s_nominal,outerContactB.s_rel,outerContactB.s_rel0,outerContactB.v_rel,rod1.L,rod2.L,rod3.L,rod4.L,sineForce.amplitude,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