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.001127/0.001126, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001181/0.001181, allocations: 187 kB / 18.67 MB, free: 4.414 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.443/1.443, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001164/0.001164, allocations: 59.92 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0848/0.08597, allocations: 46.61 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.00338/0.08939, allocations: 2.599 MB / 377.7 MB, free: 1.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007465/0.09017, allocations: 366.8 kB / 378.1 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.0903, allocations: 11.94 kB / 378.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001652/0.09049, allocations: 43.52 kB / 378.1 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001651/0.09067, allocations: 99.11 kB / 378.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003015/0.09098, allocations: 87.83 kB / 378.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003984/0.09139, allocations: 382.3 kB / 378.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002191/0.09161, allocations: 119 kB / 378.8 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.09177, allocations: 143.5 kB / 379 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002032/0.09199, allocations: 167.2 kB / 379.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.508e-05/0.09204, allocations: 32 kB / 379.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.672e-05/0.0921, allocations: 28 kB / 379.2 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.61e-05/0.09217, allocations: 67.77 kB / 379.2 MB, free: 472 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.09232, allocations: 175.2 kB / 379.4 MB, free: 296 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1804/0.2727, allocations: 361.4 kB / 379.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.2728, allocations: 0 / 379.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.2728, allocations: 0 / 379.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.809e-05/0.2729, allocations: 0.9375 kB / 379.8 MB, free: 10.57 MB / 318.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.00127/0.2741, allocations: 0.6212 MB / 380.4 MB, free: 10.14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.2742, allocations: 9.625 kB / 380.4 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.832e-05/0.2743, allocations: 34.44 kB / 380.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003748/0.2747, allocations: 270.4 kB / 380.7 MB, free: 9.902 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.65e-05/0.2747, allocations: 22.44 kB / 380.7 MB, free: 9.902 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.189e-05/0.2748, allocations: 37 kB / 380.8 MB, free: 9.898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006165/0.2754, allocations: 269.9 kB / 381 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.2754, allocations: 1.469 kB / 381 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.492e-05/0.2755, allocations: 17.28 kB / 381 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.2755, allocations: 9.781 kB / 381 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005976/0.2761, allocations: 268.5 kB / 381.3 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.2775, allocations: 0.7974 MB / 382.1 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006689/0.2782, allocations: 352.6 kB / 382.4 MB, free: 9.512 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000414/0.2786, allocations: 201 kB / 382.6 MB, free: 9.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.781e-05/0.2787, allocations: 8.812 kB / 382.7 MB, free: 9.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.2787, allocations: 40.66 kB / 382.7 MB, free: 9.461 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.403e-06/0.2787, allocations: 2.531 kB / 382.7 MB, free: 9.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.004271/0.283, allocations: 1.966 MB / 384.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.283, allocations: 58.31 kB / 384.7 MB, free: 8.707 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001676/0.2832, allocations: 198.4 kB / 384.9 MB, free: 8.574 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.2832, allocations: 37.22 kB / 384.9 MB, free: 8.535 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.373e-05/0.2833, allocations: 143.5 kB / 385.1 MB, free: 8.406 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.2834, allocations: 217 kB / 385.3 MB, free: 8.238 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/0.2836, allocations: 92.58 kB / 385.4 MB, free: 8.188 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.032e-05/0.2836, allocations: 349.2 kB / 385.7 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003093/0.284, allocations: 163 kB / 385.9 MB, free: 7.797 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003116/0.2843, allocations: 166.3 kB / 386.1 MB, free: 7.742 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000664/0.285, allocations: 377.9 kB / 386.4 MB, free: 7.578 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.285, allocations: 0 / 386.4 MB, free: 7.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007995/0.2858, allocations: 491.9 kB / 386.9 MB, free: 7.375 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.2858, allocations: 5.062 kB / 386.9 MB, free: 7.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.2858, allocations: 1.75 kB / 386.9 MB, free: 7.375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.2858, allocations: 2.719 kB / 386.9 MB, free: 7.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004569/0.2863, allocations: 121.6 kB / 387 MB, free: 7.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.2863, allocations: 2.938 kB / 387 MB, free: 7.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001891/0.2865, allocations: 26.69 kB / 387.1 MB, free: 7.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.191e-05/0.2865, allocations: 20.3 kB / 387.1 MB, free: 7.352 MB / 318.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.000143/0.2867, allocations: 157.6 kB / 387.2 MB, free: 7.211 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.28e-05/0.2868, allocations: 35.56 kB / 387.3 MB, free: 7.195 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.2869, allocations: 53.05 kB / 387.3 MB, free: 7.148 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.2869, allocations: 9.906 kB / 387.3 MB, free: 7.148 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.2869, allocations: 0.7031 kB / 387.3 MB, free: 7.148 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.2869, allocations: 2.578 kB / 387.3 MB, free: 7.148 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002058/0.289, allocations: 1.311 MB / 388.6 MB, free: 6.371 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.289, allocations: 8.531 kB / 388.7 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004711/0.2895, allocations: 122.2 kB / 388.8 MB, free: 6.363 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.275e-05/0.2895, allocations: 11.33 kB / 388.8 MB, free: 6.359 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.303e-05/0.2896, allocations: 18.39 kB / 388.8 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.077e-06/0.2896, allocations: 10.98 kB / 388.8 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.2896, allocations: 5.594 kB / 388.8 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.2908, allocations: 0.8758 MB / 389.7 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.688e-05/0.2908, allocations: 120.4 kB / 389.8 MB, free: 5.695 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.026e-05/0.2909, allocations: 17.38 kB / 389.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002439/0.2911, allocations: 25.02 kB / 389.9 MB, free: 5.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.979e-05/0.2912, allocations: 58.61 kB / 389.9 MB, free: 5.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.788e-05/0.2913, allocations: 18.38 kB / 389.9 MB, free: 5.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.44e-05/0.2914, allocations: 144.9 kB / 390.1 MB, free: 5.562 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2914, allocations: 1.062 kB / 390.1 MB, free: 5.562 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003795/0.2917, allocations: 94.44 kB / 390.2 MB, free: 5.547 MB / 318.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 9.935e-05/0.2918, allocations: 117.5 kB / 390.3 MB, free: 5.453 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007447/0.2926, allocations: 444.6 kB / 390.7 MB, free: 5.324 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.2926, allocations: 3.875 kB / 390.7 MB, free: 5.324 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004366/0.2931, allocations: 258.5 kB / 391 MB, free: 5.258 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000621/0.2937, allocations: 85.03 kB / 391 MB, free: 5.227 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001429/0.2951, allocations: 1.001 MB / 392 MB, free: 4.539 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.2954, allocations: 0.7934 MB / 392.8 MB, free: 3.84 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001864/0.2956, allocations: 49.5 kB / 392.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.2957, allocations: 38.27 kB / 392.9 MB, free: 3.828 MB / 318.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2957, allocations: 0 / 392.9 MB, free: 3.828 MB / 318.1 MB Notification: Performance of Templates: time 0.007866/0.3036, allocations: 4.199 MB / 397.1 MB, free: 3.516 MB / 318.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches