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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 113.2 kB / 17.73 MB, free: 5.312 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.001227/0.001227, allocations: 188.2 kB / 18.66 MB, free: 4.387 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.58/1.58, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.002321/0.002321, allocations: 55.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1078, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004107/0.112, allocations: 2.591 MB / 377.2 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009472/0.113, allocations: 374.7 kB / 377.6 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000199/0.1132, allocations: 8 kB / 377.6 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002093/0.1135, allocations: 47.52 kB / 377.7 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001986/0.1137, allocations: 91.12 kB / 377.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003576/0.114, allocations: 95.81 kB / 377.8 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004394/0.1145, allocations: 378.3 kB / 378.2 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.1147, allocations: 107.1 kB / 378.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.1149, allocations: 147.5 kB / 378.5 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002272/0.1152, allocations: 167.3 kB / 378.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.655e-05/0.1152, allocations: 28 kB / 378.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.22e-05/0.1153, allocations: 32 kB / 378.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.183e-05/0.1154, allocations: 63.77 kB / 378.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.1156, allocations: 171.2 kB / 378.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004602/0.116, allocations: 370.5 kB / 379.3 MB, free: 440 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.116, allocations: 4 kB / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.116, allocations: 0 / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.1161, allocations: 0 / 379.3 MB, free: 436 kB / 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.1887/0.3048, allocations: 0.6281 MB / 379.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.3048, allocations: 10.12 kB / 379.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.469e-05/0.3049, allocations: 65.67 kB / 380 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.238e-05/0.305, allocations: 39.23 kB / 380 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003898/0.3054, allocations: 274.4 kB / 380.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.732e-05/0.3054, allocations: 22.81 kB / 380.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.476e-05/0.3055, allocations: 30.91 kB / 380.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000565/0.3061, allocations: 269.1 kB / 380.6 MB, free: 12.58 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.3061, allocations: 16.69 kB / 380.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.614e-05/0.3061, allocations: 9.469 kB / 380.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.3062, allocations: 7.938 kB / 380.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005859/0.3067, allocations: 266.6 kB / 380.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.3079, allocations: 0.7947 MB / 381.7 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006544/0.3086, allocations: 353.9 kB / 382 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003669/0.309, allocations: 201.7 kB / 382.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.971e-05/0.309, allocations: 5.172 kB / 382.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.3091, allocations: 41.06 kB / 382.3 MB, free: 12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 2.514e-06/0.3091, allocations: 3.5 kB / 382.3 MB, free: 12 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.00415/0.3132, allocations: 1.975 MB / 384.2 MB, free: 10.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.3133, allocations: 62.12 kB / 384.3 MB, free: 10.92 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/0.3135, allocations: 194.2 kB / 384.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.3135, allocations: 35.86 kB / 384.5 MB, free: 10.75 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.607e-05/0.3136, allocations: 152.9 kB / 384.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.3137, allocations: 225.3 kB / 384.9 MB, free: 10.44 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/0.3139, allocations: 91.23 kB / 385 MB, free: 10.39 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.466e-05/0.3139, allocations: 345.7 kB / 385.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003185/0.3143, allocations: 165.6 kB / 385.5 MB, free: 10 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000321/0.3146, allocations: 165.8 kB / 385.7 MB, free: 9.949 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006645/0.3153, allocations: 382.8 kB / 386 MB, free: 9.777 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3153, allocations: 0 / 386 MB, free: 9.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008322/0.3161, allocations: 480.3 kB / 386.5 MB, free: 9.586 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.3161, allocations: 5.469 kB / 386.5 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.3162, allocations: 0.7969 kB / 386.5 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.528e-05/0.3162, allocations: 3.312 kB / 386.5 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004989/0.3167, allocations: 126.2 kB / 386.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.3167, allocations: 3.516 kB / 386.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.3169, allocations: 30.02 kB / 386.7 MB, free: 9.555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.254e-05/0.317, allocations: 16.58 kB / 386.7 MB, free: 9.551 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.0001561/0.3171, allocations: 157.8 kB / 386.8 MB, free: 9.402 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.459e-05/0.3172, allocations: 37.69 kB / 386.9 MB, free: 9.383 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/0.3173, allocations: 49.2 kB / 386.9 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.3173, allocations: 6.844 kB / 386.9 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.3173, allocations: 4.75 kB / 386.9 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.3174, allocations: 8.828 kB / 386.9 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001948/0.3193, allocations: 1.307 MB / 388.2 MB, free: 8.527 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.3193, allocations: 4.594 kB / 388.2 MB, free: 8.527 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004701/0.3198, allocations: 127.7 kB / 388.4 MB, free: 8.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.039e-05/0.3198, allocations: 7 kB / 388.4 MB, free: 8.512 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.57e-05/0.3199, allocations: 29.16 kB / 388.4 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.998e-06/0.3199, allocations: 8.406 kB / 388.4 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.3199, allocations: 4.625 kB / 388.4 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001209/0.3211, allocations: 0.8767 MB / 389.3 MB, free: 7.953 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.639e-05/0.3212, allocations: 120.8 kB / 389.4 MB, free: 7.832 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.034e-05/0.3213, allocations: 16.97 kB / 389.4 MB, free: 7.824 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002434/0.3215, allocations: 30.19 kB / 389.5 MB, free: 7.812 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.69e-05/0.3216, allocations: 49.67 kB / 389.5 MB, free: 7.797 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.297e-05/0.3216, allocations: 22.5 kB / 389.5 MB, free: 7.793 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001059/0.3218, allocations: 145.9 kB / 389.7 MB, free: 7.695 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3218, allocations: 0 / 389.7 MB, free: 7.695 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003953/0.3222, allocations: 98.62 kB / 389.8 MB, free: 7.676 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 0.001341/0.3235, allocations: 1.439 MB / 391.2 MB, free: 6.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008297/0.3243, allocations: 449.7 kB / 391.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3244, allocations: 0 / 391.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005313/0.3249, allocations: 256.2 kB / 391.9 MB, free: 6.363 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006479/0.3256, allocations: 76.81 kB / 392 MB, free: 6.336 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004634/0.3302, allocations: 3.691 MB / 395.7 MB, free: 3.855 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.3305, allocations: 0.7914 MB / 396.5 MB, free: 3.156 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002189/0.3307, allocations: 47 kB / 396.5 MB, free: 3.148 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001716/0.3309, allocations: 121.9 kB / 396.6 MB, free: 3.066 MB / 318.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3309, allocations: 0 / 396.6 MB, free: 3.066 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04103/0.3719, allocations: 7.491 MB / 404.1 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.65/9.022, allocations: 13.64 kB / 404.1 MB, free: 0.668 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/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