Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00133/0.00133, allocations: 179.9 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.29/1.29, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007816/0.0007816, allocations: 81.34 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003088/0.0003088, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2312, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.001962/0.2332, allocations: 2.168 MB / 376.7 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005328/0.2337, allocations: 362.1 kB / 377.1 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.2339, allocations: 4.688 kB / 377.1 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001265/0.234, allocations: 36.53 kB / 377.1 MB, free: 43.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001251/0.2341, allocations: 86.16 kB / 377.2 MB, free: 43.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002855/0.2344, allocations: 66.98 kB / 377.3 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003162/0.2348, allocations: 348.1 kB / 377.6 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001843/0.235, allocations: 86.08 kB / 377.7 MB, free: 42.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.2351, allocations: 119.8 kB / 377.8 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00015/0.2353, allocations: 145.3 kB / 377.9 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.057e-05/0.2353, allocations: 15.91 kB / 378 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.018e-05/0.2354, allocations: 16 kB / 378 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.448e-05/0.2354, allocations: 49.17 kB / 378 MB, free: 42.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.041e-05/0.2355, allocations: 79.33 kB / 378.1 MB, free: 42.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001967/0.2357, allocations: 271.8 kB / 378.4 MB, free: 42.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2357, allocations: 0.9688 kB / 378.4 MB, free: 42.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2357, allocations: 0 / 378.4 MB, free: 42.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.2357, allocations: 0 / 378.4 MB, free: 42.54 MB / 298.7 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.0009278/0.2366, allocations: 0.5892 MB / 379 MB, free: 42.03 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.2367, allocations: 16.94 kB / 379 MB, free: 42.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.399e-05/0.2368, allocations: 37.62 kB / 379 MB, free: 42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002447/0.237, allocations: 271 kB / 379.3 MB, free: 41.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.401e-05/0.2371, allocations: 24.36 kB / 379.3 MB, free: 41.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.816e-05/0.2371, allocations: 25.75 kB / 379.3 MB, free: 41.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005092/0.2376, allocations: 279.4 kB / 379.6 MB, free: 41.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.2377, allocations: 9.062 kB / 379.6 MB, free: 41.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.2377, allocations: 10.62 kB / 379.6 MB, free: 41.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.2377, allocations: 6.031 kB / 379.6 MB, free: 41.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005848/0.2383, allocations: 287.1 kB / 379.9 MB, free: 41.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.2394, allocations: 0.7895 MB / 380.7 MB, free: 40.76 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005877/0.24, allocations: 368.2 kB / 381 MB, free: 40.56 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003299/0.2403, allocations: 204.8 kB / 381.2 MB, free: 40.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.952e-05/0.2404, allocations: 4.75 kB / 381.2 MB, free: 40.46 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.681e-05/0.2404, allocations: 40.94 kB / 381.3 MB, free: 40.42 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 2.064e-06/0.2404, allocations: 3.984 kB / 381.3 MB, free: 40.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=63): time 0.003942/0.2444, allocations: 2.042 MB / 383.3 MB, free: 39.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.205e-05/0.2444, allocations: 59.03 kB / 383.4 MB, free: 39.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.2446, allocations: 202.2 kB / 383.6 MB, free: 38.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.2446, allocations: 35.92 kB / 383.6 MB, free: 38.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.37e-05/0.2447, allocations: 147 kB / 383.8 MB, free: 38.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.483e-05/0.2448, allocations: 217.9 kB / 384 MB, free: 38.58 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.959e-05/0.2448, allocations: 10.75 kB / 384 MB, free: 38.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.854e-05/0.2449, allocations: 341.7 kB / 384.3 MB, free: 38.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003192/0.2452, allocations: 166.9 kB / 384.5 MB, free: 38.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003192/0.2455, allocations: 179.9 kB / 384.7 MB, free: 38.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003691/0.2459, allocations: 182.5 kB / 384.8 MB, free: 38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2459, allocations: 3.938 kB / 384.8 MB, free: 37.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008106/0.2467, allocations: 498.7 kB / 385.3 MB, free: 37.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.2467, allocations: 4 kB / 385.3 MB, free: 37.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.2467, allocations: 0 / 385.3 MB, free: 37.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.2468, allocations: 4 kB / 385.3 MB, free: 37.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004536/0.2472, allocations: 131.8 kB / 385.5 MB, free: 37.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.2472, allocations: 4 kB / 385.5 MB, free: 37.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002029/0.2475, allocations: 31.94 kB / 385.5 MB, free: 37.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.601e-05/0.2475, allocations: 16 kB / 385.5 MB, free: 37.55 MB / 298.7 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 (elastoGap1.contact,elastoGap2.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000131/0.2476, allocations: 157.8 kB / 385.7 MB, free: 37.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.552e-05/0.2477, allocations: 35.61 kB / 385.7 MB, free: 37.35 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.492e-05/0.2478, allocations: 47.34 kB / 385.8 MB, free: 37.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.2478, allocations: 11.94 kB / 385.8 MB, free: 37.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.2478, allocations: 3.938 kB / 385.8 MB, free: 37.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.2478, allocations: 3.984 kB / 385.8 MB, free: 37.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001539/0.2494, allocations: 1.321 MB / 387.1 MB, free: 35.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.2494, allocations: 8.5 kB / 387.1 MB, free: 35.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004814/0.2499, allocations: 131.8 kB / 387.2 MB, free: 35.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.026e-06/0.2499, allocations: 8 kB / 387.2 MB, free: 35.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.99e-05/0.2499, allocations: 23.94 kB / 387.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.2499, allocations: 7.938 kB / 387.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.2499, allocations: 8 kB / 387.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.251, allocations: 0.9017 MB / 388.2 MB, free: 34.69 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.854e-05/0.2511, allocations: 112.8 kB / 388.3 MB, free: 34.56 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.464e-05/0.2511, allocations: 16 kB / 388.3 MB, free: 34.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002516/0.2514, allocations: 39.92 kB / 388.3 MB, free: 34.51 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.672e-05/0.2515, allocations: 43.89 kB / 388.4 MB, free: 34.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.529e-05/0.2515, allocations: 20 kB / 388.4 MB, free: 34.45 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.475e-05/0.2516, allocations: 148.3 kB / 388.6 MB, free: 34.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2516, allocations: 0 / 388.6 MB, free: 34.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000337/0.2519, allocations: 96 kB / 388.6 MB, free: 34.21 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000103/0.252, allocations: 123 kB / 388.8 MB, free: 34.08 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006629/0.2527, allocations: 446.7 kB / 389.2 MB, free: 33.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2527, allocations: 4 kB / 389.2 MB, free: 33.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003525/0.2531, allocations: 259.7 kB / 389.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006125/0.2537, allocations: 88.89 kB / 389.5 MB, free: 33.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.255, allocations: 1.234 MB / 390.8 MB, free: 31.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/0.2552, allocations: 0.7935 MB / 391.6 MB, free: 31.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.2554, allocations: 43.42 kB / 391.6 MB, free: 31.12 MB / 298.7 MB Notification: Performance of SimCode: time 9.02e-07/0.2554, allocations: 0 / 391.6 MB, free: 31.12 MB / 298.7 MB Notification: Performance of Templates: time 0.004918/0.2603, allocations: 4.498 MB / 396.1 MB, free: 26.64 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches