Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000771/0.0007712, allocations: 96.62 kB / 17.3 MB, free: 6.391 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.00103/0.00103, allocations: 172.5 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.552/1.552, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004526/0.0004526, allocations: 12 kB / 281.4 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1053, allocations: 47.58 MB / 329 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002877/0.1082, allocations: 2.267 MB / 331.2 MB, free: 1.488 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006739/0.1089, allocations: 366.8 kB / 331.6 MB, free: 1.129 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.1091, allocations: 7.938 kB / 331.6 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001385/0.1092, allocations: 43.69 kB / 331.6 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001678/0.1094, allocations: 79.31 kB / 331.7 MB, free: 1 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002903/0.1097, allocations: 75.92 kB / 331.8 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003562/0.11, allocations: 362.4 kB / 332.1 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002178/0.1103, allocations: 95.92 kB / 332.2 MB, free: 488 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.1104, allocations: 119.5 kB / 332.3 MB, free: 368 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.1106, allocations: 151.3 kB / 332.5 MB, free: 216 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5e-05/0.1107, allocations: 12 kB / 332.5 MB, free: 204 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.073e-05/0.1107, allocations: 20 kB / 332.5 MB, free: 184 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.564e-05/0.1108, allocations: 59.75 kB / 332.6 MB, free: 124 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.111, allocations: 172.9 kB / 332.8 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004012/0.1114, allocations: 342.6 kB / 333.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.1114, allocations: 0 / 333.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1114, allocations: 0 / 333.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.1114, allocations: 0 / 333.1 MB, free: 15.61 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001227/0.1127, allocations: 0.5965 MB / 333.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.374e-05/0.1127, allocations: 12.03 kB / 333.7 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.947e-05/0.1128, allocations: 36.47 kB / 333.7 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003857/0.1132, allocations: 267.6 kB / 334 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.143e-05/0.1133, allocations: 20.94 kB / 334 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.469e-05/0.1134, allocations: 28.38 kB / 334 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006516/0.114, allocations: 289.4 kB / 334.3 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.1141, allocations: 4.188 kB / 334.3 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.478e-05/0.1141, allocations: 15.88 kB / 334.3 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.1141, allocations: 8 kB / 334.4 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006244/0.1148, allocations: 282.1 kB / 334.6 MB, free: 13.97 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001491/0.1163, allocations: 0.8107 MB / 335.4 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006655/0.1169, allocations: 370.7 kB / 335.8 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000395/0.1173, allocations: 200.8 kB / 336 MB, free: 12.54 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.495e-05/0.1174, allocations: 8 kB / 336 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.1174, allocations: 38.56 kB / 336 MB, free: 12.48 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.553e-06/0.1174, allocations: 0 / 336 MB, free: 12.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=63): time 0.00435/0.1218, allocations: 2.035 MB / 338.1 MB, free: 10.36 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.1219, allocations: 63.95 kB / 338.1 MB, free: 10.28 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002218/0.1221, allocations: 194.8 kB / 338.3 MB, free: 10.07 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.051e-05/0.1222, allocations: 37.7 kB / 338.4 MB, free: 10.03 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.1223, allocations: 145 kB / 338.5 MB, free: 9.883 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001842/0.1225, allocations: 212.8 kB / 338.7 MB, free: 9.672 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.211e-05/0.1226, allocations: 53.69 kB / 338.8 MB, free: 9.613 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.1228, allocations: 342.8 kB / 339.1 MB, free: 9.27 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003481/0.1231, allocations: 177 kB / 339.3 MB, free: 9.098 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003231/0.1234, allocations: 173 kB / 339.4 MB, free: 8.93 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007001/0.1242, allocations: 392 kB / 339.8 MB, free: 8.543 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1242, allocations: 4 kB / 339.8 MB, free: 8.539 MB / 286.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008646/0.125, allocations: 0.4986 MB / 340.3 MB, free: 8.035 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.1251, allocations: 8 kB / 340.3 MB, free: 8.027 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.944e-06/0.1251, allocations: 0 / 340.3 MB, free: 8.027 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.1251, allocations: 3.984 kB / 340.3 MB, free: 8.023 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004798/0.1256, allocations: 127.8 kB / 340.5 MB, free: 7.898 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.1256, allocations: 7.938 kB / 340.5 MB, free: 7.891 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.1258, allocations: 27.98 kB / 340.5 MB, free: 7.863 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-05/0.1259, allocations: 23.92 kB / 340.5 MB, free: 7.84 MB / 286.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 (69): * Single equations (assignments): 69 * 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.0001844/0.1261, allocations: 153.8 kB / 340.7 MB, free: 7.68 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.32e-05/0.1261, allocations: 31.62 kB / 340.7 MB, free: 7.648 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.1263, allocations: 51.34 kB / 340.8 MB, free: 7.602 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.1263, allocations: 8 kB / 340.8 MB, free: 7.594 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.1263, allocations: 0 / 340.8 MB, free: 7.594 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.1263, allocations: 3.984 kB / 340.8 MB, free: 7.59 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/0.1283, allocations: 1.336 MB / 342.1 MB, free: 6.137 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.1283, allocations: 4 kB / 342.1 MB, free: 6.133 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000469/0.1288, allocations: 131.8 kB / 342.2 MB, free: 6.004 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.088e-05/0.1288, allocations: 16.44 kB / 342.3 MB, free: 5.988 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/0.1289, allocations: 20 kB / 342.3 MB, free: 5.969 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.995e-06/0.1289, allocations: 7.938 kB / 342.3 MB, free: 5.961 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.764e-06/0.1289, allocations: 8 kB / 342.3 MB, free: 5.953 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001356/0.1303, allocations: 0.9018 MB / 343.2 MB, free: 4.98 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.262e-05/0.1304, allocations: 116.6 kB / 343.3 MB, free: 4.848 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.093e-05/0.1304, allocations: 20.03 kB / 343.3 MB, free: 4.828 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000265/0.1307, allocations: 35.98 kB / 343.4 MB, free: 4.793 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.1308, allocations: 47.83 kB / 343.4 MB, free: 4.746 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.088e-05/0.1309, allocations: 23.98 kB / 343.4 MB, free: 4.723 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001343/0.131, allocations: 148.6 kB / 343.6 MB, free: 4.578 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.131, allocations: 0 / 343.6 MB, free: 4.578 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004013/0.1314, allocations: 92 kB / 343.7 MB, free: 4.488 MB / 286.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 (63): * Single equations (assignments): 63 * 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.0001785/0.1316, allocations: 115.1 kB / 343.8 MB, free: 4.367 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008653/0.1325, allocations: 454.7 kB / 344.2 MB, free: 3.926 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.1325, allocations: 0 / 344.2 MB, free: 3.926 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000434/0.1329, allocations: 261.1 kB / 344.5 MB, free: 3.672 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007621/0.1337, allocations: 83.69 kB / 344.6 MB, free: 3.594 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001893/0.1356, allocations: 1.248 MB / 345.8 MB, free: 2.262 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005329/0.1361, allocations: 0.7896 MB / 346.6 MB, free: 1.449 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001977/0.1363, allocations: 51.19 kB / 346.6 MB, free: 1.398 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.1365, allocations: 39.42 kB / 346.7 MB, free: 1.359 MB / 286.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1365, allocations: 3.938 kB / 346.7 MB, free: 1.355 MB / 286.1 MB Notification: Performance of Templates: time 0.008402/0.1449, allocations: 3.806 MB / 350.5 MB, free: 13.56 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches