Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 101.5 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 185.6 kB / 24.49 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 225.7 MB / 253.3 MB, free: 12.87 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 39.94 kB / 371.2 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2258, allocations: 52.19 MB / 423.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003705/0.2295, allocations: 2.408 MB / 425.8 MB, free: 12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000809/0.2303, allocations: 362.8 kB / 426.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000173/0.2305, allocations: 7.938 kB / 426.1 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001736/0.2307, allocations: 51.5 kB / 426.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.2309, allocations: 99.12 kB / 426.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003198/0.2312, allocations: 95.81 kB / 426.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004295/0.2316, allocations: 374.4 kB / 426.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001948/0.2318, allocations: 83.56 kB / 426.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001918/0.232, allocations: 155.5 kB / 427 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002282/0.2322, allocations: 163.3 kB / 427.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.172e-05/0.2323, allocations: 28 kB / 427.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.356e-05/0.2324, allocations: 32 kB / 427.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.094e-05/0.2324, allocations: 71.75 kB / 427.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001442/0.2326, allocations: 131.4 kB / 427.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004104/0.233, allocations: 379.3 kB / 427.7 MB, free: 10 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.233, allocations: 0 / 427.7 MB, free: 10 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.233, allocations: 0 / 427.7 MB, free: 10 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.233, allocations: 4 kB / 427.7 MB, free: 10 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001096/0.2341, allocations: 0.5637 MB / 428.3 MB, free: 9.402 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.2342, allocations: 12.03 kB / 428.3 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.842e-05/0.2342, allocations: 4.844 kB / 428.3 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.604e-05/0.2342, allocations: 70.72 kB / 428.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.634e-05/0.2343, allocations: 32.75 kB / 428.4 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003411/0.2346, allocations: 210.8 kB / 428.6 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/0.2347, allocations: 21.03 kB / 428.7 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.699e-05/0.2347, allocations: 32.38 kB / 428.7 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005634/0.2353, allocations: 278.3 kB / 429 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.2353, allocations: 3.938 kB / 429 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.2353, allocations: 12 kB / 429 MB, free: 8.703 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.973e-05/0.2354, allocations: 8 kB / 429 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000571/0.2359, allocations: 266.4 kB / 429.2 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001311/0.2372, allocations: 0.6935 MB / 429.9 MB, free: 7.699 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000606/0.2379, allocations: 342.6 kB / 430.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003272/0.2382, allocations: 172.8 kB / 430.4 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.34e-05/0.2382, allocations: 8 kB / 430.4 MB, free: 7.172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.2382, allocations: 34.56 kB / 430.5 MB, free: 7.129 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.924e-06/0.2382, allocations: 0 / 430.5 MB, free: 7.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=63): time 0.004154/0.2424, allocations: 1.841 MB / 432.3 MB, free: 5.238 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.2424, allocations: 56.06 kB / 432.4 MB, free: 5.172 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001927/0.2426, allocations: 202.9 kB / 432.6 MB, free: 4.965 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.484e-05/0.2427, allocations: 33.7 kB / 432.6 MB, free: 4.926 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.2428, allocations: 149.1 kB / 432.8 MB, free: 4.777 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.2429, allocations: 218.1 kB / 433 MB, free: 4.562 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001383/0.2431, allocations: 94.33 kB / 433.1 MB, free: 4.461 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.2432, allocations: 346.8 kB / 433.4 MB, free: 4.113 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003283/0.2436, allocations: 165.2 kB / 433.6 MB, free: 3.953 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003176/0.2439, allocations: 169.8 kB / 433.7 MB, free: 3.785 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006614/0.2445, allocations: 377.9 kB / 434.1 MB, free: 3.418 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2445, allocations: 0 / 434.1 MB, free: 3.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008311/0.2454, allocations: 493 kB / 434.6 MB, free: 2.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.2454, allocations: 10.8 kB / 434.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.2454, allocations: 0 / 434.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.2454, allocations: 4 kB / 434.6 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004645/0.2459, allocations: 119.8 kB / 434.7 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.2459, allocations: 7.984 kB / 434.7 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000187/0.2461, allocations: 31.92 kB / 434.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.156e-05/0.2461, allocations: 16 kB / 434.8 MB, free: 2.746 MB / 334.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.0001755/0.2463, allocations: 157.8 kB / 434.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.485e-05/0.2463, allocations: 35.81 kB / 435 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001124/0.2464, allocations: 43.34 kB / 435 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.2465, allocations: 8 kB / 435 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.2465, allocations: 0 / 435 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.2465, allocations: 7.922 kB / 435 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001977/0.2485, allocations: 1.227 MB / 436.2 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.2485, allocations: 12.06 kB / 436.2 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004969/0.249, allocations: 119.8 kB / 436.4 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.247e-06/0.249, allocations: 8 kB / 436.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.249, allocations: 19.98 kB / 436.4 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.071e-05/0.249, allocations: 11.94 kB / 436.4 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.249, allocations: 7.938 kB / 436.4 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.2505, allocations: 0.8824 MB / 437.3 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.2506, allocations: 39.83 kB / 437.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.54e-05/0.2506, allocations: 16 kB / 437.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.2509, allocations: 27.97 kB / 437.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.251, allocations: 55.56 kB / 437.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.732e-05/0.251, allocations: 23.98 kB / 437.5 MB, free: 15.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001433/0.2512, allocations: 144.6 kB / 437.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2512, allocations: 0 / 437.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004136/0.2516, allocations: 92 kB / 437.7 MB, free: 15.62 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 (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.001675/0.2533, allocations: 1.445 MB / 439.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008062/0.2541, allocations: 411.9 kB / 439.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.718e-06/0.2541, allocations: 4 kB / 439.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004338/0.2545, allocations: 240.5 kB / 439.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006434/0.2552, allocations: 81.33 kB / 439.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005088/0.2602, allocations: 3.694 MB / 443.5 MB, free: 9.496 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001947/0.2604, allocations: 187.3 kB / 443.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001957/0.2606, allocations: 47.25 kB / 443.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002051/0.2608, allocations: 123.4 kB / 443.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.2608, allocations: 0 / 443.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03165/0.2925, allocations: 8.148 MB / 452 MB, free: 1.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.09, allocations: 14.55 kB / 452.1 MB, free: 1.188 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.302944064023905]