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.001458/0.001458, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001433/0.001433, allocations: 179.1 kB / 18.66 MB, free: 4.434 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.401/1.401, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001614/0.001614, allocations: 55.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09346/0.09508, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003738/0.09886, allocations: 2.591 MB / 377.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007358/0.09962, allocations: 374.8 kB / 377.6 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.09975, allocations: 7.938 kB / 377.6 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000167/0.09994, allocations: 47.52 kB / 377.7 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001802/0.1001, allocations: 95.11 kB / 377.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002959/0.1004, allocations: 91.83 kB / 377.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003989/0.1008, allocations: 378.3 kB / 378.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002194/0.1011, allocations: 111.1 kB / 378.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.1012, allocations: 139.5 kB / 378.5 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002147/0.1015, allocations: 171.2 kB / 378.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.228e-05/0.1015, allocations: 32 kB / 378.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.434e-05/0.1016, allocations: 28 kB / 378.7 MB, free: 1.031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.826e-05/0.1016, allocations: 67.75 kB / 378.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.1018, allocations: 171.2 kB / 378.9 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004099/0.1022, allocations: 370.5 kB / 379.3 MB, free: 444 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.1023, allocations: 0 / 379.3 MB, free: 444 kB / 318.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1023, allocations: 0 / 379.3 MB, free: 444 kB / 318.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.1023, allocations: 0 / 379.3 MB, free: 444 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.1634/0.2656, allocations: 0.6304 MB / 379.9 MB, free: 12.85 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.2657, allocations: 10.28 kB / 379.9 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.192e-05/0.2658, allocations: 64.05 kB / 380 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.045e-05/0.2659, allocations: 39.08 kB / 380 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003189/0.2662, allocations: 268.4 kB / 380.3 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/0.2662, allocations: 21.72 kB / 380.3 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.444e-05/0.2663, allocations: 31.97 kB / 380.3 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005407/0.2668, allocations: 273.1 kB / 380.6 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.2669, allocations: 12.77 kB / 380.6 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.364e-05/0.2669, allocations: 12.41 kB / 380.6 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.2669, allocations: 6.031 kB / 380.6 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005608/0.2675, allocations: 265.5 kB / 380.9 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001128/0.2686, allocations: 0.7973 MB / 381.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006054/0.2692, allocations: 355.5 kB / 382 MB, free: 12.08 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003838/0.2696, allocations: 198 kB / 382.2 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.551e-05/0.2697, allocations: 5.531 kB / 382.2 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.757e-05/0.2697, allocations: 40.38 kB / 382.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.573e-06/0.2697, allocations: 0 / 382.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.003944/0.2736, allocations: 1.981 MB / 384.2 MB, free: 10.95 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.028e-05/0.2737, allocations: 57.59 kB / 384.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.2739, allocations: 197.7 kB / 384.5 MB, free: 10.76 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.2739, allocations: 35.83 kB / 384.5 MB, free: 10.72 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.017e-05/0.274, allocations: 148.8 kB / 384.7 MB, free: 10.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.2741, allocations: 226.9 kB / 384.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.2742, allocations: 91.16 kB / 385 MB, free: 10.36 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.168e-05/0.2743, allocations: 351.9 kB / 385.3 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003095/0.2746, allocations: 158.8 kB / 385.5 MB, free: 9.973 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002911/0.2749, allocations: 171.9 kB / 385.7 MB, free: 9.914 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006225/0.2755, allocations: 373.3 kB / 386 MB, free: 9.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.2755, allocations: 0 / 386 MB, free: 9.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.000767/0.2763, allocations: 488.1 kB / 386.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.2763, allocations: 6.312 kB / 386.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2763, allocations: 0.8438 kB / 386.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.2764, allocations: 2.906 kB / 386.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004536/0.2768, allocations: 126.7 kB / 386.6 MB, free: 9.535 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.2768, allocations: 3.031 kB / 386.6 MB, free: 9.535 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001856/0.277, allocations: 26.25 kB / 386.7 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.165e-05/0.2771, allocations: 17.19 kB / 386.7 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.0001229/0.2772, allocations: 161.2 kB / 386.8 MB, free: 9.371 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.862e-05/0.2773, allocations: 37.42 kB / 386.9 MB, free: 9.352 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.784e-05/0.2774, allocations: 46.92 kB / 386.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.2774, allocations: 12.69 kB / 386.9 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.2774, allocations: 0.875 kB / 386.9 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.2774, allocations: 8.438 kB / 386.9 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001706/0.2791, allocations: 1.306 MB / 388.2 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.2791, allocations: 4.406 kB / 388.2 MB, free: 8.496 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004579/0.2796, allocations: 127.9 kB / 388.4 MB, free: 8.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.787e-06/0.2796, allocations: 8.828 kB / 388.4 MB, free: 8.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.353e-05/0.2796, allocations: 20.88 kB / 388.4 MB, free: 8.473 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.638e-06/0.2797, allocations: 12.27 kB / 388.4 MB, free: 8.469 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.2797, allocations: 8.594 kB / 388.4 MB, free: 8.465 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/0.2808, allocations: 0.8763 MB / 389.3 MB, free: 7.922 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.234e-05/0.2809, allocations: 116.6 kB / 389.4 MB, free: 7.805 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5e-05/0.281, allocations: 17.83 kB / 389.4 MB, free: 7.797 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002394/0.2812, allocations: 30.27 kB / 389.5 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.375e-05/0.2813, allocations: 53.39 kB / 389.5 MB, free: 7.766 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.914e-05/0.2813, allocations: 22.59 kB / 389.5 MB, free: 7.762 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.577e-05/0.2814, allocations: 141.9 kB / 389.7 MB, free: 7.668 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2814, allocations: 0 / 389.7 MB, free: 7.668 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003692/0.2818, allocations: 98.91 kB / 389.8 MB, free: 7.648 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.001303/0.2831, allocations: 1.439 MB / 391.2 MB, free: 6.559 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007671/0.2839, allocations: 449.1 kB / 391.6 MB, free: 6.414 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.2839, allocations: 1.031 kB / 391.6 MB, free: 6.414 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004134/0.2843, allocations: 257.6 kB / 391.9 MB, free: 6.328 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000607/0.2849, allocations: 82.23 kB / 392 MB, free: 6.305 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004234/0.2892, allocations: 3.689 MB / 395.7 MB, free: 3.824 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.2894, allocations: 0.7916 MB / 396.5 MB, free: 3.125 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001955/0.2896, allocations: 44.53 kB / 396.5 MB, free: 3.117 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.2898, allocations: 118.8 kB / 396.6 MB, free: 3.039 MB / 318.1 MB Notification: Performance of SimCode: time 7.91e-07/0.2898, allocations: 0 / 396.6 MB, free: 3.039 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03104/0.3209, allocations: 7.505 MB / 404.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.092/8.413, allocations: 9.688 kB / 404.1 MB, free: 0.6211 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