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.001266/0.001266, allocations: 108.6 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.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.001323/0.001323, allocations: 192.8 kB / 24.5 MB, free: 4.02 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.329/1.329, allocations: 225.7 MB / 253.3 MB, free: 13.04 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.001456/0.001456, allocations: 43.92 kB / 371.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2287, allocations: 52.19 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004374/0.233, allocations: 2.63 MB / 426 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007262/0.2338, allocations: 378.7 kB / 426.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.2339, allocations: 7.938 kB / 426.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001628/0.234, allocations: 47.45 kB / 426.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001737/0.2342, allocations: 95.17 kB / 426.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003207/0.2345, allocations: 95.83 kB / 426.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004373/0.235, allocations: 382.3 kB / 427 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000217/0.2352, allocations: 83.56 kB / 427.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001966/0.2354, allocations: 147.5 kB / 427.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002375/0.2356, allocations: 155.4 kB / 427.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.456e-05/0.2357, allocations: 32 kB / 427.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.183e-05/0.2357, allocations: 28 kB / 427.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.257e-05/0.2358, allocations: 75.75 kB / 427.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001715/0.236, allocations: 167.2 kB / 427.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004252/0.2364, allocations: 371.3 kB / 428.1 MB, free: 9.945 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2364, allocations: 4 kB / 428.1 MB, free: 9.941 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2364, allocations: 0 / 428.1 MB, free: 9.941 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.2364, allocations: 0 / 428.1 MB, free: 9.941 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.001078/0.2375, allocations: 0.5637 MB / 428.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.2375, allocations: 8.031 kB / 428.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.732e-05/0.2376, allocations: 8.844 kB / 428.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.282e-05/0.2376, allocations: 66.66 kB / 428.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.444e-05/0.2377, allocations: 36.75 kB / 428.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003436/0.238, allocations: 214.8 kB / 428.9 MB, free: 8.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.2381, allocations: 25.03 kB / 429 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.264e-05/0.2381, allocations: 28.38 kB / 429 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005515/0.2387, allocations: 274.4 kB / 429.3 MB, free: 8.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.2387, allocations: 7.938 kB / 429.3 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.984e-05/0.2387, allocations: 12 kB / 429.3 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.2387, allocations: 8 kB / 429.3 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000585/0.2393, allocations: 266.4 kB / 429.6 MB, free: 8.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.2406, allocations: 0.7597 MB / 430.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006013/0.2412, allocations: 342.7 kB / 430.6 MB, free: 7.223 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003412/0.2415, allocations: 172.7 kB / 430.8 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.364e-05/0.2416, allocations: 8 kB / 430.8 MB, free: 7.043 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.2416, allocations: 34.56 kB / 430.9 MB, free: 7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.623e-06/0.2416, allocations: 0 / 430.9 MB, free: 7 MB / 334.1 MB Notification: Performance of matching and sorting (n=63): time 0.004281/0.2459, allocations: 1.837 MB / 432.7 MB, free: 5.113 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.2459, allocations: 60.06 kB / 432.8 MB, free: 5.043 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/0.2461, allocations: 198.9 kB / 432.9 MB, free: 4.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.2462, allocations: 37.7 kB / 433 MB, free: 4.797 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.2463, allocations: 149.1 kB / 433.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001957/0.2465, allocations: 218.1 kB / 433.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/0.2466, allocations: 94.33 kB / 433.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.2468, allocations: 342.8 kB / 433.8 MB, free: 3.988 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003449/0.2471, allocations: 161.2 kB / 433.9 MB, free: 3.832 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003364/0.2475, allocations: 169.8 kB / 434.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007018/0.2482, allocations: 381.8 kB / 434.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2482, allocations: 0 / 434.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008692/0.249, allocations: 493.1 kB / 434.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.2491, allocations: 7.984 kB / 435 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.2491, allocations: 4 kB / 435 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.2491, allocations: 4 kB / 435 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004644/0.2495, allocations: 119.8 kB / 435.1 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.2496, allocations: 4 kB / 435.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000193/0.2497, allocations: 27.92 kB / 435.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.064e-05/0.2498, allocations: 12 kB / 435.1 MB, free: 2.629 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.0001743/0.25, allocations: 165.7 kB / 435.3 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.682e-05/0.25, allocations: 39.81 kB / 435.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001156/0.2501, allocations: 43.34 kB / 435.4 MB, free: 2.367 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.2501, allocations: 4 kB / 435.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/0.2501, allocations: 4 kB / 435.4 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.2502, allocations: 7.922 kB / 435.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002062/0.2522, allocations: 1.277 MB / 436.7 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.2522, allocations: 15.86 kB / 436.7 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004688/0.2527, allocations: 124.4 kB / 436.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.178e-05/0.2527, allocations: 15.92 kB / 436.8 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.368e-05/0.2527, allocations: 20 kB / 436.8 MB, free: 0.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.187e-06/0.2528, allocations: 11.98 kB / 436.8 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.2528, allocations: 4 kB / 436.8 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001446/0.2542, allocations: 0.8785 MB / 437.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.385e-05/0.2543, allocations: 43.78 kB / 437.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.437e-05/0.2543, allocations: 16 kB / 437.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002405/0.2546, allocations: 23.98 kB / 437.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.857e-05/0.2546, allocations: 55.55 kB / 437.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.321e-05/0.2547, allocations: 24 kB / 437.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001268/0.2548, allocations: 140.6 kB / 438 MB, free: 15.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2548, allocations: 0 / 438 MB, free: 15.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003859/0.2552, allocations: 96 kB / 438.1 MB, free: 15.44 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.2569, allocations: 1.434 MB / 439.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008106/0.2577, allocations: 423.9 kB / 440 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2577, allocations: 0 / 440 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004312/0.2581, allocations: 240 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006314/0.2587, allocations: 91.62 kB / 440.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005153/0.2639, allocations: 3.689 MB / 444 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004215/0.2643, allocations: 0.7933 MB / 444.8 MB, free: 8.488 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001838/0.2645, allocations: 55.25 kB / 444.8 MB, free: 8.438 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001921/0.2647, allocations: 119.4 kB / 444.9 MB, free: 8.32 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2647, allocations: 0 / 444.9 MB, free: 8.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03045/0.2951, allocations: 7.993 MB / 452.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/11.13, allocations: 2.75 kB / 452.9 MB, free: 0.5078 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.363241327984724]