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.0008698/0.0008698, allocations: 96.78 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001087/0.001087, allocations: 205.1 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.7 MB / 247.5 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002813/0.0002814, allocations: 8 kB / 308.4 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09925/0.09955, allocations: 51.52 MB / 359.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002753/0.1023, allocations: 2.343 MB / 362.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.1038, allocations: 0.7249 MB / 363 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002571/0.1041, allocations: 7.938 kB / 363 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002036/0.1043, allocations: 35.7 kB / 363 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004399/0.1047, allocations: 91.3 kB / 363.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000421/0.1052, allocations: 75.81 kB / 363.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005775/0.1058, allocations: 370.3 kB / 363.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002804/0.106, allocations: 107.6 kB / 363.6 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002672/0.1063, allocations: 119.5 kB / 363.8 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003033/0.1066, allocations: 151.2 kB / 363.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.018e-05/0.1067, allocations: 12 kB / 363.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.929e-05/0.1068, allocations: 16 kB / 363.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.036e-05/0.1069, allocations: 59.75 kB / 364 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002213/0.1071, allocations: 184.9 kB / 364.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000275/0.1074, allocations: 275.4 kB / 364.4 MB, free: 8.746 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1074, allocations: 7.938 kB / 364.5 MB, free: 8.738 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1074, allocations: 0 / 364.5 MB, free: 8.738 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.1075, allocations: 3.938 kB / 364.5 MB, free: 8.734 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.000963/0.1084, allocations: 0.5615 MB / 365 MB, free: 8.121 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.1085, allocations: 12.03 kB / 365 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.1086, allocations: 36.47 kB / 365.1 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003295/0.1089, allocations: 268.7 kB / 365.3 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.936e-05/0.109, allocations: 25.03 kB / 365.4 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.882e-05/0.1091, allocations: 35.94 kB / 365.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004671/0.1095, allocations: 258.1 kB / 365.6 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.1096, allocations: 7.906 kB / 365.7 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.884e-05/0.1096, allocations: 8 kB / 365.7 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1096, allocations: 8 kB / 365.7 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003985/0.11, allocations: 234.4 kB / 365.9 MB, free: 7.203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/0.1113, allocations: 0.8077 MB / 366.7 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004915/0.1118, allocations: 346.3 kB / 367 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002606/0.1121, allocations: 181.5 kB / 367.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.503e-05/0.1122, allocations: 4.375 kB / 367.2 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.1122, allocations: 38.94 kB / 367.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.024e-06/0.1122, allocations: 0 / 367.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.003806/0.116, allocations: 1.931 MB / 369.2 MB, free: 3.754 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.1161, allocations: 59.97 kB / 369.2 MB, free: 3.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002058/0.1163, allocations: 212.5 kB / 369.5 MB, free: 3.465 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.169e-05/0.1163, allocations: 33.7 kB / 369.5 MB, free: 3.426 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.124e-05/0.1164, allocations: 149 kB / 369.6 MB, free: 3.273 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.1166, allocations: 220.7 kB / 369.9 MB, free: 3.055 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.177e-05/0.1167, allocations: 57.69 kB / 369.9 MB, free: 2.992 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.1168, allocations: 338.8 kB / 370.2 MB, free: 2.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002406/0.117, allocations: 141.2 kB / 370.4 MB, free: 2.512 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002451/0.1173, allocations: 157.8 kB / 370.5 MB, free: 2.363 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005257/0.1178, allocations: 357.5 kB / 370.9 MB, free: 2.012 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.1178, allocations: 0 / 370.9 MB, free: 2.012 MB / 302.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006643/0.1185, allocations: 460.9 kB / 371.3 MB, free: 1.555 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.1185, allocations: 8 kB / 371.3 MB, free: 1.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.1185, allocations: 3.984 kB / 371.3 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.1186, allocations: 3.938 kB / 371.3 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004564/0.119, allocations: 115.8 kB / 371.5 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/0.1191, allocations: 4 kB / 371.5 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002032/0.1193, allocations: 16 kB / 371.5 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.289e-05/0.1193, allocations: 23.98 kB / 371.5 MB, free: 1.383 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.0001687/0.1195, allocations: 166.3 kB / 371.7 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.07e-05/0.1196, allocations: 35.56 kB / 371.7 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001219/0.1197, allocations: 59.31 kB / 371.8 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.1197, allocations: 7.938 kB / 371.8 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.1197, allocations: 0 / 371.8 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.1197, allocations: 3.984 kB / 371.8 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.191/0.3107, allocations: 1.294 MB / 373.1 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-05/0.3108, allocations: 3.281 kB / 373.1 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005804/0.3114, allocations: 120.4 kB / 373.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.779e-05/0.3114, allocations: 7.406 kB / 373.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.792e-05/0.3115, allocations: 18.27 kB / 373.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.425e-05/0.3115, allocations: 11.33 kB / 373.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/0.3115, allocations: 10.33 kB / 373.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.3129, allocations: 0.8376 MB / 374.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.313, allocations: 119 kB / 374.2 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.976e-05/0.3131, allocations: 18.81 kB / 374.2 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000284/0.3134, allocations: 22.03 kB / 374.2 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.3135, allocations: 48.97 kB / 374.3 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.047e-05/0.3136, allocations: 21.09 kB / 374.3 MB, free: 18.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001566/0.3137, allocations: 155.8 kB / 374.4 MB, free: 18.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3137, allocations: 0 / 374.4 MB, free: 18.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005006/0.3142, allocations: 97.06 kB / 374.5 MB, free: 18.56 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.0001775/0.3144, allocations: 118.4 kB / 374.7 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001048/0.3155, allocations: 403.4 kB / 375 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.3155, allocations: 1.406 kB / 375 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006045/0.3161, allocations: 238.2 kB / 375.3 MB, free: 18.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009512/0.3171, allocations: 92.36 kB / 375.4 MB, free: 18.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/0.3192, allocations: 1.281 MB / 376.7 MB, free: 17.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.3195, allocations: 0.7991 MB / 377.5 MB, free: 16.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.3197, allocations: 41.88 kB / 377.5 MB, free: 16.9 MB / 302.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3197, allocations: 0 / 377.5 MB, free: 16.9 MB / 302.1 MB Notification: Performance of Templates: time 0.01139/0.3311, allocations: 4.672 MB / 382.2 MB, free: 16.53 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