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.001089/0.001089, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001486/0.001486, allocations: 214.4 kB / 18.58 MB, free: 4.406 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.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 58 kB / 306.9 MB, free: 0.6172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09598/0.09721, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003971/0.1012, allocations: 2.662 MB / 360.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001528/0.1028, allocations: 0.7326 MB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000299/0.1031, allocations: 7.938 kB / 360.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002388/0.1034, allocations: 55.5 kB / 360.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000386/0.1038, allocations: 103 kB / 361 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003751/0.1041, allocations: 87.83 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000502/0.1047, allocations: 390.3 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002551/0.1049, allocations: 119.1 kB / 361.6 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002269/0.1052, allocations: 143.5 kB / 361.8 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002785/0.1054, allocations: 167.2 kB / 361.9 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.663e-05/0.1055, allocations: 28 kB / 361.9 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.315e-05/0.1056, allocations: 32 kB / 362 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.193e-05/0.1057, allocations: 71.75 kB / 362 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.1059, allocations: 171.2 kB / 362.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004278/0.1063, allocations: 382.8 kB / 362.6 MB, free: 8.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.1063, allocations: 4 kB / 362.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1064, allocations: 0 / 362.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.1064, allocations: 0 / 362.6 MB, free: 8.926 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.001326/0.1077, allocations: 0.6198 MB / 363.2 MB, free: 8.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.1078, allocations: 8.031 kB / 363.2 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.1079, allocations: 36.56 kB / 363.3 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003624/0.1082, allocations: 272.6 kB / 363.5 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.888e-05/0.1083, allocations: 24.97 kB / 363.5 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.21e-05/0.1083, allocations: 31.94 kB / 363.6 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004723/0.1088, allocations: 262.1 kB / 363.8 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.1088, allocations: 3.984 kB / 363.8 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.106e-05/0.1089, allocations: 12 kB / 363.8 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.1089, allocations: 11.94 kB / 363.9 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004044/0.1093, allocations: 230.5 kB / 364.1 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.1107, allocations: 0.8037 MB / 364.9 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005002/0.1112, allocations: 343.7 kB / 365.2 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002665/0.1114, allocations: 177.5 kB / 365.4 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.349e-05/0.1115, allocations: 4.375 kB / 365.4 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.1115, allocations: 42.94 kB / 365.4 MB, free: 5.914 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 3.016e-06/0.1115, allocations: 0 / 365.4 MB, free: 5.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.003723/0.1153, allocations: 1.896 MB / 367.3 MB, free: 3.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.614e-05/0.1153, allocations: 63.95 kB / 367.4 MB, free: 3.852 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002069/0.1155, allocations: 208.5 kB / 367.6 MB, free: 3.637 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.1156, allocations: 41.64 kB / 367.6 MB, free: 3.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.852e-05/0.1157, allocations: 148.9 kB / 367.8 MB, free: 3.438 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.1158, allocations: 220.8 kB / 368 MB, free: 3.219 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001224/0.116, allocations: 90.34 kB / 368.1 MB, free: 3.125 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1161, allocations: 346.8 kB / 368.4 MB, free: 2.777 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.1164, allocations: 145.2 kB / 368.6 MB, free: 2.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002345/0.1166, allocations: 153.9 kB / 368.7 MB, free: 2.484 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005032/0.1171, allocations: 353.5 kB / 369.1 MB, free: 2.141 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1171, allocations: 4 kB / 369.1 MB, free: 2.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006482/0.1178, allocations: 464.9 kB / 369.5 MB, free: 1.676 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.1178, allocations: 4 kB / 369.5 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1178, allocations: 0 / 369.5 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.1178, allocations: 7.938 kB / 369.5 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004389/0.1183, allocations: 115.8 kB / 369.7 MB, free: 1.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.1183, allocations: 0 / 369.7 MB, free: 1.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001786/0.1185, allocations: 23.98 kB / 369.7 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/0.1185, allocations: 16 kB / 369.7 MB, free: 1.512 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.0001624/0.1187, allocations: 162.4 kB / 369.8 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.257e-05/0.1188, allocations: 31.62 kB / 369.9 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/0.1189, allocations: 51.33 kB / 369.9 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.1189, allocations: 7.938 kB / 369.9 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.1189, allocations: 4 kB / 369.9 MB, free: 1.254 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.1189, allocations: 7.922 kB / 370 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1663/0.2852, allocations: 1.308 MB / 371.3 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/0.2853, allocations: 5.312 kB / 371.3 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004893/0.2858, allocations: 116.9 kB / 371.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.2858, allocations: 7.766 kB / 371.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.588e-05/0.2859, allocations: 19.66 kB / 371.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-05/0.2859, allocations: 10.08 kB / 371.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/0.2859, allocations: 8.594 kB / 371.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009996/0.2869, allocations: 0.836 MB / 372.3 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.845e-05/0.287, allocations: 116 kB / 372.4 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.414e-05/0.287, allocations: 16.11 kB / 372.4 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002313/0.2873, allocations: 22.03 kB / 372.4 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.145e-05/0.2874, allocations: 54.39 kB / 372.5 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.08e-05/0.2874, allocations: 22.09 kB / 372.5 MB, free: 19.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001302/0.2875, allocations: 148.7 kB / 372.6 MB, free: 19.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2875, allocations: 0 / 372.6 MB, free: 19.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004167/0.288, allocations: 96.66 kB / 372.7 MB, free: 19.41 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.0001213/0.2881, allocations: 124.5 kB / 372.8 MB, free: 19.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007702/0.2889, allocations: 436.3 kB / 373.3 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.2889, allocations: 1.062 kB / 373.3 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003383/0.2892, allocations: 242.8 kB / 373.5 MB, free: 19.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007008/0.2899, allocations: 100.1 kB / 373.6 MB, free: 19.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.2913, allocations: 1.019 MB / 374.6 MB, free: 18.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.2916, allocations: 0.7973 MB / 375.4 MB, free: 17.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001864/0.2918, allocations: 51.06 kB / 375.5 MB, free: 17.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.2919, allocations: 36.81 kB / 375.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2919, allocations: 0 / 375.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of Templates: time 0.009721/0.3016, allocations: 4.339 MB / 379.8 MB, free: 17.62 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches