Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.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.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap") translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001207/0.001207, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001398, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 246.9 MB, free: 10.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 59.75 kB / 306.9 MB, free: 1.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09668/0.09803, allocations: 50.54 MB / 357.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.00491/0.103, allocations: 2.709 MB / 360.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002025/0.105, allocations: 0.7288 MB / 360.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003862/0.1055, allocations: 11.94 kB / 360.9 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002822/0.1058, allocations: 35.7 kB / 360.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004567/0.1063, allocations: 95.23 kB / 361 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004608/0.1068, allocations: 75.92 kB / 361.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006131/0.1074, allocations: 362.3 kB / 361.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003109/0.1077, allocations: 103.6 kB / 361.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000279/0.108, allocations: 135.4 kB / 361.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003114/0.1083, allocations: 159.3 kB / 361.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.08e-05/0.1084, allocations: 20 kB / 361.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.839e-05/0.1085, allocations: 20 kB / 361.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.716e-05/0.1086, allocations: 63.69 kB / 361.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002342/0.1089, allocations: 163.1 kB / 362.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003604/0.1093, allocations: 283.5 kB / 362.4 MB, free: 9.508 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.1093, allocations: 0 / 362.4 MB, free: 9.508 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1093, allocations: 4 kB / 362.4 MB, free: 9.504 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.711e-05/0.1093, allocations: 0 / 362.4 MB, free: 9.504 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001512/0.1108, allocations: 0.612 MB / 363 MB, free: 8.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.1109, allocations: 16.03 kB / 363 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.111, allocations: 32.56 kB / 363 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004691/0.1115, allocations: 276.7 kB / 363.3 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.29e-05/0.1116, allocations: 17.03 kB / 363.3 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.866e-05/0.1117, allocations: 31.94 kB / 363.3 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007041/0.1124, allocations: 266 kB / 363.6 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/0.1124, allocations: 4 kB / 363.6 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.096e-05/0.1125, allocations: 8 kB / 363.6 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.1125, allocations: 15.92 kB / 363.6 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006398/0.1131, allocations: 230.5 kB / 363.9 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.1151, allocations: 0.8037 MB / 364.7 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00075/0.1158, allocations: 340.3 kB / 365 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004081/0.1163, allocations: 177.5 kB / 365.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.663e-05/0.1163, allocations: 16.34 kB / 365.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.1164, allocations: 38.88 kB / 365.2 MB, free: 6.492 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.484e-06/0.1164, allocations: 4 kB / 365.2 MB, free: 6.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.005821/0.1222, allocations: 1.896 MB / 367.1 MB, free: 4.504 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.076e-05/0.1223, allocations: 59.97 kB / 367.2 MB, free: 4.434 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003003/0.1226, allocations: 208.4 kB / 367.4 MB, free: 4.219 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.772e-05/0.1227, allocations: 37.7 kB / 367.4 MB, free: 4.176 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.1228, allocations: 152.9 kB / 367.6 MB, free: 4.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002437/0.1231, allocations: 216.8 kB / 367.8 MB, free: 3.805 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001981/0.1233, allocations: 94.34 kB / 367.9 MB, free: 3.707 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.1235, allocations: 346.8 kB / 368.2 MB, free: 3.359 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003682/0.1239, allocations: 145.2 kB / 368.4 MB, free: 3.215 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000345/0.1242, allocations: 153.8 kB / 368.5 MB, free: 3.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008685/0.1251, allocations: 353.6 kB / 368.9 MB, free: 2.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1251, allocations: 0 / 368.9 MB, free: 2.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001095/0.1262, allocations: 460.9 kB / 369.3 MB, free: 2.266 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.1263, allocations: 8 kB / 369.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.1263, allocations: 0 / 369.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.215e-05/0.1263, allocations: 3.938 kB / 369.3 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006973/0.127, allocations: 123.8 kB / 369.4 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.485e-05/0.1271, allocations: 7.984 kB / 369.4 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002954/0.1274, allocations: 12 kB / 369.5 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.06e-05/0.1274, allocations: 19.94 kB / 369.5 MB, free: 2.094 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (elastoGap2.contact,elastoGap1.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * 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.0002364/0.1277, allocations: 166.4 kB / 369.6 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.1278, allocations: 35.62 kB / 369.7 MB, free: 1.887 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001291/0.1279, allocations: 43.34 kB / 369.7 MB, free: 1.848 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.128, allocations: 11.94 kB / 369.7 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.128, allocations: 4 kB / 369.7 MB, free: 1.832 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.128, allocations: 3.984 kB / 369.7 MB, free: 1.828 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002779/0.1308, allocations: 1.301 MB / 371 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.1308, allocations: 4 kB / 371 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007293/0.1315, allocations: 119.8 kB / 371.2 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.592e-05/0.1316, allocations: 8.562 kB / 371.2 MB, free: 284 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.819e-05/0.1316, allocations: 27.94 kB / 371.2 MB, free: 256 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.609e-05/0.1317, allocations: 11.98 kB / 371.2 MB, free: 244 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.1317, allocations: 7.938 kB / 371.2 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.234/0.3657, allocations: 0.8369 MB / 372 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001433/0.3659, allocations: 108.3 kB / 372.2 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.938e-05/0.366, allocations: 19.47 kB / 372.2 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004445/0.3664, allocations: 15.66 kB / 372.2 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001542/0.3666, allocations: 58.89 kB / 372.2 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.424e-05/0.3667, allocations: 20.84 kB / 372.3 MB, free: 19.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002192/0.3669, allocations: 149.4 kB / 372.4 MB, free: 19.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3669, allocations: 0.875 kB / 372.4 MB, free: 19.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007273/0.3677, allocations: 97.03 kB / 372.5 MB, free: 19.65 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel) * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 65 * 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.0001824/0.3678, allocations: 121.4 kB / 372.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.3689, allocations: 403.1 kB / 373 MB, free: 19.56 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.369, allocations: 0 / 373 MB, free: 19.56 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000524/0.3695, allocations: 244.6 kB / 373.3 MB, free: 19.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.3706, allocations: 86.73 kB / 373.3 MB, free: 19.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002279/0.3728, allocations: 1.198 MB / 374.5 MB, free: 18.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.3732, allocations: 0.7973 MB / 375.3 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001931/0.3734, allocations: 40.98 kB / 375.4 MB, free: 18.06 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3734, allocations: 0 / 375.4 MB, free: 18.06 MB / 302.1 MB Notification: Performance of Templates: time 0.01284/0.3863, allocations: 4.71 MB / 380.1 MB, free: 17.61 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches