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.001661/0.001661, allocations: 114.5 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.001834/0.001834, allocations: 183 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.391/1.391, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.00122/0.00122, allocations: 60.3 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08577/0.087, 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.003652/0.09069, allocations: 2.595 MB / 377.2 MB, free: 2.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009063/0.09163, allocations: 374.7 kB / 377.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000268/0.09191, allocations: 4 kB / 377.6 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000215/0.09217, allocations: 47.5 kB / 377.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002575/0.09244, allocations: 95.12 kB / 377.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003621/0.09281, allocations: 95.81 kB / 377.8 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004143/0.09323, allocations: 370.4 kB / 378.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002217/0.09346, allocations: 123.3 kB / 378.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001957/0.09367, allocations: 143.5 kB / 378.5 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002167/0.09389, allocations: 171.3 kB / 378.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.473e-05/0.09395, allocations: 28 kB / 378.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.214e-05/0.09402, allocations: 32 kB / 378.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.692e-05/0.09408, allocations: 67.75 kB / 378.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001548/0.09424, allocations: 171.2 kB / 378.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003349/0.09459, allocations: 366.7 kB / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.0946, allocations: 0 / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.09461, allocations: 0 / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.09462, 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.1704/0.2651, allocations: 0.6232 MB / 379.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.2651, allocations: 10.62 kB / 379.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001029/0.2653, allocations: 64.17 kB / 380 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.673e-05/0.2654, allocations: 35.16 kB / 380 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004341/0.2658, allocations: 272.8 kB / 380.3 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.886e-05/0.2659, allocations: 23.12 kB / 380.3 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.065e-05/0.2659, allocations: 33.2 kB / 380.3 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000623/0.2665, allocations: 272.5 kB / 380.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.48e-05/0.2666, allocations: 9.688 kB / 380.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.644e-05/0.2666, allocations: 12.97 kB / 380.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.2666, allocations: 6.719 kB / 380.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006134/0.2673, allocations: 264.6 kB / 380.9 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.2686, allocations: 0.7868 MB / 381.7 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006639/0.2693, allocations: 357.4 kB / 382 MB, free: 12.1 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003763/0.2697, allocations: 202.6 kB / 382.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.761e-05/0.2697, allocations: 7.75 kB / 382.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.2698, allocations: 36.19 kB / 382.2 MB, free: 11.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.713e-06/0.2698, allocations: 3.938 kB / 382.3 MB, free: 11.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.004148/0.2739, allocations: 1.969 MB / 384.2 MB, free: 10.97 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/0.274, allocations: 58.19 kB / 384.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001687/0.2741, allocations: 195.2 kB / 384.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.2742, allocations: 35.52 kB / 384.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.847e-05/0.2743, allocations: 148.7 kB / 384.6 MB, free: 10.61 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.2744, allocations: 209.8 kB / 384.9 MB, free: 10.44 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.2745, allocations: 91.58 kB / 384.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.445e-05/0.2746, allocations: 351.9 kB / 385.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003133/0.2749, allocations: 159.6 kB / 385.4 MB, free: 10 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002995/0.2752, allocations: 171 kB / 385.6 MB, free: 9.945 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006376/0.2759, allocations: 381.5 kB / 386 MB, free: 9.777 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2759, allocations: 0.5625 kB / 386 MB, free: 9.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.000805/0.2767, allocations: 487.2 kB / 386.5 MB, free: 9.582 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.2767, allocations: 5.781 kB / 386.5 MB, free: 9.582 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.2767, allocations: 0 / 386.5 MB, free: 9.582 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.2767, allocations: 3.578 kB / 386.5 MB, free: 9.582 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004658/0.2772, allocations: 126 kB / 386.6 MB, free: 9.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.2772, allocations: 4.969 kB / 386.6 MB, free: 9.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001941/0.2774, allocations: 26.69 kB / 386.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.17e-05/0.2775, allocations: 21.16 kB / 386.6 MB, free: 9.547 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.0001328/0.2776, allocations: 158.6 kB / 386.8 MB, free: 9.398 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.991e-05/0.2777, allocations: 36.53 kB / 386.8 MB, free: 9.383 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.2778, allocations: 45.88 kB / 386.9 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.2778, allocations: 10.56 kB / 386.9 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/0.2778, allocations: 1.578 kB / 386.9 MB, free: 9.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.2778, allocations: 6.609 kB / 386.9 MB, free: 9.336 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001808/0.2796, allocations: 1.306 MB / 388.2 MB, free: 8.531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.2797, allocations: 8.438 kB / 388.2 MB, free: 8.527 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004704/0.2801, allocations: 124.1 kB / 388.3 MB, free: 8.516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.902e-05/0.2802, allocations: 13.38 kB / 388.3 MB, free: 8.512 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.514e-05/0.2802, allocations: 18.39 kB / 388.4 MB, free: 8.504 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.101e-05/0.2802, allocations: 8.125 kB / 388.4 MB, free: 8.504 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/0.2802, allocations: 8.5 kB / 388.4 MB, free: 8.5 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.2815, allocations: 0.8728 MB / 389.3 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.744e-05/0.2815, allocations: 115.1 kB / 389.4 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.946e-05/0.2816, allocations: 18.53 kB / 389.4 MB, free: 7.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002503/0.2818, allocations: 29.23 kB / 389.4 MB, free: 7.824 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.593e-05/0.2819, allocations: 55.39 kB / 389.5 MB, free: 7.805 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-05/0.282, allocations: 21.27 kB / 389.5 MB, free: 7.801 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000106/0.2821, allocations: 145.2 kB / 389.6 MB, free: 7.703 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2821, allocations: 1.25 kB / 389.6 MB, free: 7.703 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003976/0.2825, allocations: 98.12 kB / 389.7 MB, free: 7.684 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.001344/0.2838, allocations: 1.433 MB / 391.2 MB, free: 6.602 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000843/0.2847, allocations: 446.5 kB / 391.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.2847, allocations: 1.094 kB / 391.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004188/0.2851, allocations: 258.8 kB / 391.8 MB, free: 6.371 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006327/0.2858, allocations: 83.95 kB / 391.9 MB, free: 6.344 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00505/0.2908, allocations: 3.665 MB / 395.6 MB, free: 3.891 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002467/0.2911, allocations: 0.7928 MB / 396.4 MB, free: 3.191 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001938/0.2913, allocations: 43.64 kB / 396.4 MB, free: 3.184 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001652/0.2915, allocations: 118.6 kB / 396.5 MB, free: 3.105 MB / 318.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2915, allocations: 0 / 396.5 MB, free: 3.105 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1247/0.4162, allocations: 7.618 MB / 404.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.949/8.366, allocations: 13.3 kB / 404.2 MB, free: 0.6445 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