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.001009/0.001009, allocations: 109.4 kB / 17.73 MB, free: 5.324 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.0009651/0.0009651, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.243/1.243, 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.001235/0.001235, allocations: 55.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08777/0.08902, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004364/0.09343, allocations: 2.591 MB / 377.2 MB, free: 2.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.09452, allocations: 370.8 kB / 377.6 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002882/0.09483, allocations: 11.94 kB / 377.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002155/0.09509, allocations: 43.52 kB / 377.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000274/0.09538, allocations: 95.12 kB / 377.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003634/0.09575, allocations: 91.81 kB / 377.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004617/0.09622, allocations: 374.3 kB / 378.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002467/0.09647, allocations: 119.3 kB / 378.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002131/0.09669, allocations: 147.5 kB / 378.5 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002467/0.09695, allocations: 163.3 kB / 378.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.001e-05/0.09702, allocations: 32 kB / 378.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.829e-05/0.09709, allocations: 32 kB / 378.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.715e-05/0.09718, allocations: 71.75 kB / 378.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001787/0.09736, allocations: 175.2 kB / 378.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004188/0.09779, allocations: 362.7 kB / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.0978, allocations: 4 kB / 379.3 MB, free: 432 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.09781, allocations: 0 / 379.3 MB, free: 432 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.09783, allocations: 0 / 379.3 MB, free: 432 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.1659/0.2638, allocations: 0.6219 MB / 379.9 MB, free: 12.85 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.2638, allocations: 10.19 kB / 379.9 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.525e-05/0.2639, allocations: 61.69 kB / 380 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.498e-05/0.264, allocations: 36.75 kB / 380 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000387/0.2644, allocations: 268.7 kB / 380.3 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.693e-05/0.2644, allocations: 22.44 kB / 380.3 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.309e-05/0.2645, allocations: 33.67 kB / 380.3 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005877/0.2651, allocations: 273.7 kB / 380.6 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.2651, allocations: 6.484 kB / 380.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.2651, allocations: 15.69 kB / 380.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.2652, allocations: 7.031 kB / 380.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005738/0.2657, allocations: 265.9 kB / 380.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.267, allocations: 0.795 MB / 381.7 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006373/0.2677, allocations: 360.7 kB / 382 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003472/0.268, allocations: 196.8 kB / 382.2 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.938e-05/0.2681, allocations: 5.344 kB / 382.2 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.2681, allocations: 38.27 kB / 382.3 MB, free: 11.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.403e-06/0.2681, allocations: 0 / 382.3 MB, free: 11.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.003896/0.272, allocations: 1.969 MB / 384.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.86e-05/0.2721, allocations: 59.47 kB / 384.3 MB, free: 10.88 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.2722, allocations: 197.3 kB / 384.5 MB, free: 10.75 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/0.2723, allocations: 36.14 kB / 384.5 MB, free: 10.71 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.933e-05/0.2724, allocations: 148.1 kB / 384.7 MB, free: 10.58 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.2725, allocations: 212.9 kB / 384.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.2726, allocations: 92.84 kB / 385 MB, free: 10.36 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.621e-05/0.2727, allocations: 345.2 kB / 385.3 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002992/0.273, allocations: 162.7 kB / 385.4 MB, free: 9.977 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002854/0.2733, allocations: 169.3 kB / 385.6 MB, free: 9.922 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005909/0.2739, allocations: 382.3 kB / 386 MB, free: 9.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.2739, allocations: 0 / 386 MB, free: 9.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007587/0.2746, allocations: 488 kB / 386.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.2747, allocations: 5.969 kB / 386.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.2747, allocations: 0.875 kB / 386.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.2747, allocations: 2.156 kB / 386.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004419/0.2752, allocations: 123.8 kB / 386.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.2752, allocations: 6.5 kB / 386.6 MB, free: 9.535 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001783/0.2754, allocations: 27.17 kB / 386.6 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.042e-05/0.2754, allocations: 16.94 kB / 386.6 MB, free: 9.52 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.0001254/0.2755, allocations: 153.5 kB / 386.8 MB, free: 9.375 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.237e-05/0.2756, allocations: 34.84 kB / 386.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.194e-05/0.2757, allocations: 56.36 kB / 386.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.2757, allocations: 6.562 kB / 386.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/0.2757, allocations: 4 kB / 386.9 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.2757, allocations: 10.97 kB / 386.9 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001714/0.2775, allocations: 1.305 MB / 388.2 MB, free: 8.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.836e-06/0.2775, allocations: 5.516 kB / 388.2 MB, free: 8.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000467/0.278, allocations: 126 kB / 388.3 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.218e-06/0.278, allocations: 7.859 kB / 388.3 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.332e-05/0.278, allocations: 21.91 kB / 388.4 MB, free: 8.473 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.828e-06/0.278, allocations: 11.47 kB / 388.4 MB, free: 8.469 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.278, allocations: 5.797 kB / 388.4 MB, free: 8.469 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.2792, allocations: 0.8798 MB / 389.3 MB, free: 7.926 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.496e-05/0.2793, allocations: 120.5 kB / 389.4 MB, free: 7.805 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.426e-05/0.2794, allocations: 17.53 kB / 389.4 MB, free: 7.797 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002403/0.2796, allocations: 28.95 kB / 389.4 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.2797, allocations: 50.5 kB / 389.5 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.693e-05/0.2798, allocations: 21.62 kB / 389.5 MB, free: 7.766 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001383/0.2799, allocations: 146.5 kB / 389.6 MB, free: 7.668 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.2799, allocations: 0 / 389.6 MB, free: 7.668 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000422/0.2804, allocations: 95.56 kB / 389.7 MB, free: 7.652 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.001512/0.2819, allocations: 1.43 MB / 391.2 MB, free: 6.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000821/0.2827, allocations: 446.9 kB / 391.6 MB, free: 6.426 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.2827, allocations: 1.438 kB / 391.6 MB, free: 6.426 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003974/0.2831, allocations: 254.6 kB / 391.8 MB, free: 6.344 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006189/0.2838, allocations: 79.44 kB / 391.9 MB, free: 6.316 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004351/0.2881, allocations: 3.665 MB / 395.6 MB, free: 3.863 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.2884, allocations: 0.794 MB / 396.4 MB, free: 3.164 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002289/0.2886, allocations: 50.67 kB / 396.4 MB, free: 3.156 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.2888, allocations: 119.1 kB / 396.6 MB, free: 3.074 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2888, allocations: 0 / 396.6 MB, free: 3.074 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.028/0.3168, allocations: 7.615 MB / 404.2 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.614/7.931, allocations: 12.25 kB / 404.2 MB, free: 0.6016 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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