Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 206.1 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.367/1.367, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 43.92 kB / 378.6 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2683, allocations: 53.36 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004131/0.2725, allocations: 2.699 MB / 434.6 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.2739, allocations: 0.7326 MB / 435.3 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.274, allocations: 7.938 kB / 435.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001946/0.2742, allocations: 51.44 kB / 435.4 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002111/0.2745, allocations: 107.1 kB / 435.5 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003273/0.2748, allocations: 95.86 kB / 435.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004304/0.2752, allocations: 386.3 kB / 436 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002276/0.2754, allocations: 84.19 kB / 436.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.2756, allocations: 159.4 kB / 436.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002389/0.2759, allocations: 163.3 kB / 436.4 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.964e-05/0.2759, allocations: 31.98 kB / 436.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.216e-05/0.276, allocations: 32 kB / 436.4 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.012e-05/0.276, allocations: 67.77 kB / 436.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001744/0.2762, allocations: 175.1 kB / 436.7 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000425/0.2766, allocations: 378.8 kB / 437 MB, free: 1.707 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.2766, allocations: 4 kB / 437 MB, free: 1.703 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2766, allocations: 4 kB / 437.1 MB, free: 1.699 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.2767, allocations: 0 / 437.1 MB, free: 1.699 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001042/0.2777, allocations: 0.5597 MB / 437.6 MB, free: 1.109 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2777, allocations: 8.031 kB / 437.6 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.966e-05/0.2778, allocations: 8.844 kB / 437.6 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.668e-05/0.2778, allocations: 62.73 kB / 437.7 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.046e-05/0.2779, allocations: 40.7 kB / 437.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003656/0.2783, allocations: 214.9 kB / 437.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.2783, allocations: 24.59 kB / 438 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.848e-05/0.2783, allocations: 39.94 kB / 438 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004371/0.2788, allocations: 262.1 kB / 438.3 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.2788, allocations: 0 / 438.3 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.2788, allocations: 19.94 kB / 438.3 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.2788, allocations: 8 kB / 438.3 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004049/0.2792, allocations: 234.4 kB / 438.5 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001302/0.2805, allocations: 0.7525 MB / 439.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005052/0.281, allocations: 319.5 kB / 439.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002515/0.2813, allocations: 153.5 kB / 439.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.2813, allocations: 8.312 kB / 439.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.2813, allocations: 38.94 kB / 439.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.472e-06/0.2814, allocations: 0 / 439.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003744/0.2851, allocations: 1.78 MB / 441.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.2851, allocations: 60.06 kB / 441.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.2854, allocations: 207.3 kB / 441.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/0.2854, allocations: 33.7 kB / 441.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.2855, allocations: 149.1 kB / 442 MB, free: 12.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001939/0.2857, allocations: 238 kB / 442.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.2858, allocations: 90.34 kB / 442.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.286, allocations: 350.8 kB / 442.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002495/0.2863, allocations: 141.2 kB / 442.8 MB, free: 11.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002442/0.2865, allocations: 153.8 kB / 442.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005371/0.287, allocations: 354 kB / 443.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.287, allocations: 3.938 kB / 443.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006733/0.2877, allocations: 461.1 kB / 443.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.2877, allocations: 4 kB / 443.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.2877, allocations: 3.938 kB / 443.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.2878, allocations: 7.984 kB / 443.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004428/0.2882, allocations: 123.8 kB / 443.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.2882, allocations: 3.984 kB / 443.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001647/0.2884, allocations: 16 kB / 443.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.498e-05/0.2884, allocations: 23.98 kB / 443.9 MB, free: 10.58 MB / 350.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 (71): * Single equations (assignments): 71 * 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.0001717/0.2886, allocations: 157.7 kB / 444.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.655e-05/0.2886, allocations: 35.77 kB / 444.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001175/0.2888, allocations: 51.28 kB / 444.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.2888, allocations: 11.98 kB / 444.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.2888, allocations: 4 kB / 444.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.2888, allocations: 4 kB / 444.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00179/0.2906, allocations: 1.254 MB / 445.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.2906, allocations: 8.125 kB / 445.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004438/0.291, allocations: 119.8 kB / 445.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.291, allocations: 8 kB / 445.6 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.015e-05/0.2911, allocations: 16 kB / 445.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.058e-05/0.2911, allocations: 15.88 kB / 445.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.2911, allocations: 4 kB / 445.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.2922, allocations: 0.8455 MB / 446.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.437e-05/0.2922, allocations: 39.8 kB / 446.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.489e-05/0.2923, allocations: 23.94 kB / 446.5 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.2925, allocations: 16 kB / 446.5 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.881e-05/0.2926, allocations: 56.23 kB / 446.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.169e-05/0.2926, allocations: 23.98 kB / 446.6 MB, free: 7.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001324/0.2928, allocations: 148.5 kB / 446.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2928, allocations: 8 kB / 446.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003828/0.2932, allocations: 96 kB / 446.9 MB, free: 7.465 MB / 350.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 (65): * Single equations (assignments): 65 * 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.001481/0.2946, allocations: 1.39 MB / 448.2 MB, free: 5.988 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006594/0.2953, allocations: 387.7 kB / 448.6 MB, free: 5.609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2953, allocations: 8 kB / 448.6 MB, free: 5.602 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000342/0.2956, allocations: 222.2 kB / 448.8 MB, free: 5.387 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006425/0.2963, allocations: 97 kB / 448.9 MB, free: 5.289 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004738/0.301, allocations: 3.676 MB / 452.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.3015, allocations: 0.7972 MB / 453.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001863/0.3017, allocations: 51.28 kB / 453.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002003/0.3019, allocations: 123.4 kB / 453.6 MB, free: 436 kB / 350.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3019, allocations: 0 / 453.6 MB, free: 436 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03194/0.3338, allocations: 8.365 MB / 461.9 MB, free: 8.254 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.34, allocations: 10.98 kB / 462 MB, free: 8.246 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.644542507012375]