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.0008088/0.0008088, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.0008797/0.0008794, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.367/1.367, allocations: 223.2 MB / 241.2 MB, free: 5.285 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002399/0.00024, allocations: 8.562 kB / 300.8 MB, free: 5.59 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09687/0.09712, allocations: 50.43 MB / 351.2 MB, free: 11.48 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.003201/0.1004, allocations: 3.032 MB / 354.3 MB, free: 8.438 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.1016, allocations: 0.8298 MB / 355.1 MB, free: 7.602 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002095/0.1018, allocations: 7.938 kB / 355.1 MB, free: 7.594 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002116/0.102, allocations: 59.53 kB / 355.2 MB, free: 7.535 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000262/0.1023, allocations: 126.9 kB / 355.3 MB, free: 7.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004527/0.1028, allocations: 115.9 kB / 355.4 MB, free: 7.297 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005763/0.1033, allocations: 0.5411 MB / 355.9 MB, free: 6.754 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000278/0.1036, allocations: 146.1 kB / 356.1 MB, free: 6.605 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002517/0.1039, allocations: 203.3 kB / 356.3 MB, free: 6.406 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002788/0.1042, allocations: 235 kB / 356.5 MB, free: 6.176 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.423e-05/0.1042, allocations: 28 kB / 356.5 MB, free: 6.148 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.335e-05/0.1043, allocations: 28 kB / 356.6 MB, free: 6.121 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.332e-05/0.1044, allocations: 83.66 kB / 356.7 MB, free: 6.039 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.508e-05/0.1045, allocations: 117.5 kB / 356.8 MB, free: 5.918 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003842/0.1049, allocations: 430.8 kB / 357.2 MB, free: 5.496 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1049, allocations: 0 / 357.2 MB, free: 5.496 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1049, allocations: 4 kB / 357.2 MB, free: 5.492 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.894e-06/0.1049, allocations: 0 / 357.2 MB, free: 5.492 MB / 286.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.001452/0.1064, allocations: 0.7991 MB / 358 MB, free: 4.645 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1064, allocations: 15.97 kB / 358 MB, free: 4.629 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.384e-05/0.1065, allocations: 63.28 kB / 358.1 MB, free: 4.566 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000363/0.1069, allocations: 318.1 kB / 358.4 MB, free: 4.219 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.127e-05/0.1069, allocations: 33 kB / 358.4 MB, free: 4.188 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.588e-05/0.107, allocations: 47.91 kB / 358.5 MB, free: 4.141 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008924/0.1079, allocations: 470.4 kB / 358.9 MB, free: 3.676 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.108, allocations: 0 / 358.9 MB, free: 3.676 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.216e-05/0.108, allocations: 23.94 kB / 358.9 MB, free: 3.652 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.108, allocations: 12 kB / 359 MB, free: 3.641 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00103/0.1091, allocations: 499.5 kB / 359.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002155/0.1112, allocations: 1.386 MB / 360.8 MB, free: 1.707 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009383/0.1122, allocations: 0.5558 MB / 361.4 MB, free: 1.141 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007394/0.1129, allocations: 390.8 kB / 361.8 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.417e-05/0.113, allocations: 12.55 kB / 361.8 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.113, allocations: 39.12 kB / 361.8 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 2.224e-06/0.113, allocations: 0 / 361.8 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of matching and sorting (n=103): time 0.007025/0.1201, allocations: 3.288 MB / 365.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/0.1201, allocations: 64.41 kB / 365.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002378/0.1204, allocations: 250.9 kB / 365.4 MB, free: 13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.638e-05/0.1204, allocations: 41.7 kB / 365.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.1205, allocations: 193.3 kB / 365.6 MB, free: 12.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002284/0.1208, allocations: 354.7 kB / 366 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.555e-05/0.1208, allocations: 16 kB / 366 MB, free: 12.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.121, allocations: 362.8 kB / 366.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005888/0.1216, allocations: 285.8 kB / 366.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006474/0.1222, allocations: 365.4 kB / 367 MB, free: 11.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006719/0.1229, allocations: 314.9 kB / 367.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.1229, allocations: 7.953 kB / 367.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001491/0.1244, allocations: 0.8093 MB / 368.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.1244, allocations: 8.062 kB / 368.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.1245, allocations: 4 kB / 368.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.1245, allocations: 4 kB / 368.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/0.1257, allocations: 219.7 kB / 368.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.121e-05/0.1258, allocations: 4 kB / 368.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005316/0.1263, allocations: 59.95 kB / 368.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-05/0.1264, allocations: 28 kB / 368.4 MB, free: 9.93 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 (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 initialization (113): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003547/0.1268, allocations: 197.6 kB / 368.6 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.1269, allocations: 55.3 kB / 368.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002282/0.1272, allocations: 77.39 kB / 368.8 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/0.1272, allocations: 12 kB / 368.8 MB, free: 9.582 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/0.1272, allocations: 0 / 368.8 MB, free: 9.582 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.9e-05/0.1273, allocations: 3.984 kB / 368.8 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005086/0.1323, allocations: 2.037 MB / 370.8 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.357e-05/0.1324, allocations: 4 kB / 370.8 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/0.1336, allocations: 219.6 kB / 371 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-05/0.1337, allocations: 12.31 kB / 371 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.801e-05/0.1338, allocations: 27.98 kB / 371.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.427e-05/0.1338, allocations: 12 kB / 371.1 MB, free: 7.156 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.127e-06/0.1338, allocations: 11.88 kB / 371.1 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003749/0.1376, allocations: 1.423 MB / 372.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001759/0.1378, allocations: 120.5 kB / 372.6 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/0.1379, allocations: 32.02 kB / 372.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006213/0.1385, allocations: 63.95 kB / 372.7 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/0.1387, allocations: 68.81 kB / 372.8 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.328e-05/0.1388, allocations: 35.98 kB / 372.8 MB, free: 5.316 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002631/0.1391, allocations: 174 kB / 373 MB, free: 5.148 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1391, allocations: 0 / 373 MB, free: 5.148 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008724/0.14, allocations: 160 kB / 373.2 MB, free: 4.992 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000225/0.1402, allocations: 133.2 kB / 373.3 MB, free: 4.855 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002318/0.1425, allocations: 0.7582 MB / 374 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.1425, allocations: 4 kB / 374 MB, free: 4.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001251/0.1438, allocations: 458.7 kB / 374.5 MB, free: 3.645 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.1451, allocations: 108.8 kB / 374.6 MB, free: 3.531 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004456/0.1495, allocations: 1.836 MB / 376.4 MB, free: 1.609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006714/0.1502, allocations: 0.8726 MB / 377.3 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005738/0.1508, allocations: 76.97 kB / 377.4 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002769/0.1511, allocations: 55.42 kB / 377.4 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of SimCode: time 1.643e-06/0.1511, allocations: 0 / 377.4 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of Templates: time 0.021/0.1722, allocations: 5.781 MB / 383.2 MB, free: 10.85 MB / 318.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/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_4.0.0_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches