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.00196/0.00196, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002274/0.002274, allocations: 214.7 kB / 24.51 MB, free: 3.918 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.358/1.358, allocations: 230.6 MB / 258.3 MB, free: 7.777 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.001464/0.001464, allocations: 51.91 kB / 378.5 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2334, allocations: 53.36 MB / 431.8 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003792/0.2372, allocations: 2.471 MB / 434.3 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001471/0.2386, allocations: 0.7014 MB / 435 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.2388, allocations: 7.938 kB / 435 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001798/0.239, allocations: 47.52 kB / 435.1 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002205/0.2392, allocations: 111 kB / 435.2 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003219/0.2395, allocations: 91.83 kB / 435.3 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004215/0.2399, allocations: 394.3 kB / 435.7 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001928/0.2401, allocations: 78.31 kB / 435.7 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001693/0.2403, allocations: 155.5 kB / 435.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002213/0.2405, allocations: 167.3 kB / 436 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.188e-05/0.2406, allocations: 32 kB / 436.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.443e-05/0.2406, allocations: 28 kB / 436.1 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.624e-05/0.2407, allocations: 79.69 kB / 436.2 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001538/0.2408, allocations: 139.4 kB / 436.3 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004178/0.2413, allocations: 390.3 kB / 436.7 MB, free: 1.777 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2413, allocations: 0 / 436.7 MB, free: 1.777 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2413, allocations: 0 / 436.7 MB, free: 1.777 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.2413, allocations: 0 / 436.7 MB, free: 1.777 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.001041/0.2423, allocations: 0.5582 MB / 437.3 MB, free: 1.191 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.2424, allocations: 12.03 kB / 437.3 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.913e-05/0.2424, allocations: 4.844 kB / 437.3 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.328e-05/0.2425, allocations: 70.72 kB / 437.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.803e-05/0.2425, allocations: 40.7 kB / 437.4 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003955/0.2429, allocations: 218.9 kB / 437.6 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.744e-05/0.243, allocations: 24.59 kB / 437.6 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.443e-05/0.243, allocations: 35.95 kB / 437.7 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000503/0.2435, allocations: 258.1 kB / 437.9 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.2436, allocations: 0 / 437.9 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.318e-05/0.2436, allocations: 12 kB / 437.9 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.2436, allocations: 4 kB / 437.9 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004409/0.244, allocations: 238.4 kB / 438.2 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.2454, allocations: 0.6979 MB / 438.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005082/0.2459, allocations: 319.3 kB / 439.2 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002631/0.2462, allocations: 161.5 kB / 439.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.435e-05/0.2462, allocations: 4.375 kB / 439.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.243e-05/0.2462, allocations: 38.94 kB / 439.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.543e-06/0.2462, allocations: 0 / 439.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003802/0.25, allocations: 1.772 MB / 441.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.514e-05/0.2501, allocations: 64.06 kB / 441.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002405/0.2503, allocations: 211.3 kB / 441.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.563e-05/0.2504, allocations: 33.7 kB / 441.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.2505, allocations: 153.1 kB / 441.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001903/0.2507, allocations: 234 kB / 441.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/0.2508, allocations: 94.34 kB / 441.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.251, allocations: 342.8 kB / 442.2 MB, free: 12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002532/0.2512, allocations: 145.2 kB / 442.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002575/0.2515, allocations: 157.8 kB / 442.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005452/0.252, allocations: 353.9 kB / 442.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.252, allocations: 0 / 442.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006902/0.2527, allocations: 465.1 kB / 443.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.2528, allocations: 4 kB / 443.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.2528, allocations: 3.938 kB / 443.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.2528, allocations: 4 kB / 443.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004482/0.2532, allocations: 119.8 kB / 443.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/0.2532, allocations: 4 kB / 443.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001707/0.2534, allocations: 16 kB / 443.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.053e-05/0.2535, allocations: 23.92 kB / 443.5 MB, free: 10.72 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.0001785/0.2536, allocations: 161.7 kB / 443.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.999e-05/0.2537, allocations: 39.77 kB / 443.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.2538, allocations: 59.27 kB / 443.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.2538, allocations: 8 kB / 443.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.2538, allocations: 0 / 443.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.2538, allocations: 0 / 443.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001741/0.2556, allocations: 1.195 MB / 445 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.2556, allocations: 4 kB / 445 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004522/0.256, allocations: 119.8 kB / 445.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.094e-06/0.2561, allocations: 4 kB / 445.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.572e-05/0.2561, allocations: 20 kB / 445.1 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.915e-06/0.2561, allocations: 7.984 kB / 445.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.187e-05/0.2561, allocations: 12.41 kB / 445.1 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.2573, allocations: 0.8416 MB / 446 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.442e-05/0.2573, allocations: 39.77 kB / 446 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.481e-05/0.2574, allocations: 16 kB / 446 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.2576, allocations: 20.03 kB / 446.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.832e-05/0.2577, allocations: 56.23 kB / 446.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.237e-05/0.2577, allocations: 20 kB / 446.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001367/0.2579, allocations: 152.5 kB / 446.3 MB, free: 7.773 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2579, allocations: 4 kB / 446.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003812/0.2582, allocations: 103.9 kB / 446.4 MB, free: 7.668 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.001439/0.2597, allocations: 1.39 MB / 447.8 MB, free: 6.191 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006388/0.2603, allocations: 387.7 kB / 448.2 MB, free: 5.812 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.2603, allocations: 0 / 448.2 MB, free: 5.812 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003596/0.2607, allocations: 234.2 kB / 448.4 MB, free: 5.586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006606/0.2613, allocations: 85.92 kB / 448.5 MB, free: 5.496 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00476/0.2661, allocations: 3.68 MB / 452.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002019/0.2663, allocations: 191.3 kB / 452.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001924/0.2665, allocations: 47.34 kB / 452.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/0.2667, allocations: 127.3 kB / 452.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2667, allocations: 0 / 452.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03226/0.299, allocations: 8.55 MB / 461 MB, free: 8.926 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.17, allocations: 10.91 kB / 461.1 MB, free: 8.918 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.460181492031552]