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.001273/0.001273, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.00132, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 227.4 MB / 247.5 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001856, allocations: 64.09 kB / 307.6 MB, free: 0.6641 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1112, allocations: 50.54 MB / 358.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004296/0.1156, allocations: 2.674 MB / 360.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.117, allocations: 0.7365 MB / 361.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.1172, allocations: 4 kB / 361.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001664/0.1174, allocations: 51.45 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002091/0.1176, allocations: 103 kB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003023/0.1179, allocations: 91.88 kB / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003966/0.1183, allocations: 382.3 kB / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000243/0.1186, allocations: 119 kB / 362.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001669/0.1187, allocations: 151.4 kB / 362.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002255/0.119, allocations: 167.3 kB / 362.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.714e-05/0.119, allocations: 28 kB / 362.7 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.942e-05/0.1191, allocations: 32 kB / 362.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.61e-05/0.1192, allocations: 71.75 kB / 362.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001751/0.1194, allocations: 175.1 kB / 362.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003956/0.1198, allocations: 370.9 kB / 363.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1198, allocations: 0 / 363.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1198, allocations: 0 / 363.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.1198, allocations: 4 kB / 363.3 MB, free: 8.973 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.001095/0.1209, allocations: 0.6198 MB / 363.9 MB, free: 8.301 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.121, allocations: 12.03 kB / 363.9 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.032e-05/0.121, allocations: 36.56 kB / 364 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.1214, allocations: 268.6 kB / 364.2 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.1214, allocations: 25.03 kB / 364.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.778e-05/0.1215, allocations: 35.88 kB / 364.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004561/0.122, allocations: 258.1 kB / 364.5 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.122, allocations: 0 / 364.5 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.187e-05/0.122, allocations: 16 kB / 364.6 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.122, allocations: 8 kB / 364.6 MB, free: 7.617 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004125/0.1225, allocations: 230.4 kB / 364.8 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.1238, allocations: 0.8154 MB / 365.6 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005274/0.1244, allocations: 335.6 kB / 365.9 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.1246, allocations: 177.5 kB / 366.1 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.78e-05/0.1247, allocations: 12.36 kB / 366.1 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.1247, allocations: 34.94 kB / 366.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.743e-06/0.1247, allocations: 0 / 366.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.003933/0.1287, allocations: 1.903 MB / 368.1 MB, free: 3.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.033e-05/0.1287, allocations: 55.97 kB / 368.1 MB, free: 3.898 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002319/0.129, allocations: 212.5 kB / 368.3 MB, free: 3.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.225e-05/0.129, allocations: 37.7 kB / 368.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.1291, allocations: 144.9 kB / 368.5 MB, free: 3.488 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001776/0.1293, allocations: 228.7 kB / 368.7 MB, free: 3.262 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.1295, allocations: 90.34 kB / 368.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.1297, allocations: 346.8 kB / 369.1 MB, free: 2.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002539/0.1299, allocations: 145.2 kB / 369.3 MB, free: 2.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000251/0.1302, allocations: 153.8 kB / 369.4 MB, free: 2.527 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005587/0.1307, allocations: 353.6 kB / 369.8 MB, free: 2.184 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1307, allocations: 4 kB / 369.8 MB, free: 2.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007176/0.1315, allocations: 460.8 kB / 370.2 MB, free: 1.723 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.1315, allocations: 4 kB / 370.2 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.525e-06/0.1315, allocations: 0 / 370.2 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.1315, allocations: 7.938 kB / 370.2 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000466/0.132, allocations: 123.8 kB / 370.4 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.132, allocations: 0 / 370.4 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001884/0.1322, allocations: 24 kB / 370.4 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.1323, allocations: 16 kB / 370.4 MB, free: 1.551 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.000191/0.1325, allocations: 162.4 kB / 370.6 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.885e-05/0.1325, allocations: 31.62 kB / 370.6 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001157/0.1327, allocations: 51.34 kB / 370.6 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.1327, allocations: 7.938 kB / 370.7 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.1327, allocations: 0 / 370.7 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.1327, allocations: 3.984 kB / 370.7 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1584/0.2911, allocations: 1.306 MB / 372 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/0.2912, allocations: 5.031 kB / 372 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005734/0.2918, allocations: 121.1 kB / 372.1 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.012e-05/0.2918, allocations: 6.625 kB / 372.1 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.815e-05/0.2919, allocations: 20.36 kB / 372.1 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.56e-05/0.2919, allocations: 12.02 kB / 372.1 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.053e-05/0.2919, allocations: 5.016 kB / 372.1 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001258/0.2932, allocations: 0.8442 MB / 373 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.179e-05/0.2933, allocations: 112.1 kB / 373.1 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.989e-05/0.2934, allocations: 18.39 kB / 373.1 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.2936, allocations: 26 kB / 373.1 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.2937, allocations: 48.97 kB / 373.2 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.035e-05/0.2938, allocations: 21.62 kB / 373.2 MB, free: 19.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001378/0.2939, allocations: 150 kB / 373.3 MB, free: 19.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2939, allocations: 0 / 373.3 MB, free: 19.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004245/0.2943, allocations: 101.5 kB / 373.4 MB, free: 19.44 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.0001772/0.2945, allocations: 116.7 kB / 373.6 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008332/0.2954, allocations: 439.5 kB / 374 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.2954, allocations: 1.688 kB / 374 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003697/0.2958, allocations: 239.2 kB / 374.2 MB, free: 19.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007492/0.2965, allocations: 101.7 kB / 374.3 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.2982, allocations: 1.044 MB / 375.4 MB, free: 18.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002568/0.2984, allocations: 0.7957 MB / 376.2 MB, free: 17.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.2986, allocations: 45.73 kB / 376.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of SimCode: time 1.272e-06/0.2986, allocations: 0 / 376.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of Templates: time 0.009054/0.3076, allocations: 4.719 MB / 380.9 MB, free: 17.46 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.1.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