Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00139/0.00139, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001435/0.001435, allocations: 214.8 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 230.5 MB / 258.2 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 63.91 kB / 378.5 MB, free: 2.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2484, allocations: 53.4 MB / 431.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003728/0.2521, allocations: 2.468 MB / 434.4 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.2533, allocations: 0.6937 MB / 435.1 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.2535, allocations: 7.938 kB / 435.1 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001515/0.2536, allocations: 51.45 kB / 435.1 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002097/0.2538, allocations: 111 kB / 435.2 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002805/0.2541, allocations: 91.88 kB / 435.3 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004029/0.2545, allocations: 390.2 kB / 435.7 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000188/0.2547, allocations: 85.69 kB / 435.8 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001625/0.2549, allocations: 151.4 kB / 435.9 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002247/0.2551, allocations: 167.3 kB / 436.1 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.886e-05/0.2551, allocations: 36 kB / 436.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.569e-05/0.2552, allocations: 32 kB / 436.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.713e-05/0.2553, allocations: 71.75 kB / 436.2 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001499/0.2554, allocations: 139.3 kB / 436.4 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004057/0.2558, allocations: 390.4 kB / 436.7 MB, free: 1.613 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2558, allocations: 0 / 436.7 MB, free: 1.613 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2558, allocations: 0 / 436.7 MB, free: 1.613 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.2558, allocations: 0 / 436.7 MB, free: 1.613 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.0009759/0.2568, allocations: 0.5558 MB / 437.3 MB, free: 1.027 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.2568, allocations: 12.03 kB / 437.3 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.135e-05/0.2569, allocations: 12.84 kB / 437.3 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.352e-05/0.2569, allocations: 66.72 kB / 437.4 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.187e-05/0.257, allocations: 40.7 kB / 437.4 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003495/0.2573, allocations: 218.9 kB / 437.6 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.717e-05/0.2574, allocations: 28.53 kB / 437.7 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.896e-05/0.2574, allocations: 35.95 kB / 437.7 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004524/0.2579, allocations: 262 kB / 438 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.2579, allocations: 0 / 438 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.115e-05/0.2579, allocations: 12 kB / 438 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.2579, allocations: 8 kB / 438 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003967/0.2583, allocations: 238.4 kB / 438.2 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001262/0.2596, allocations: 0.694 MB / 438.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005029/0.2601, allocations: 318.9 kB / 439.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/0.2603, allocations: 157.5 kB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.175e-05/0.2604, allocations: 4.375 kB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.2604, allocations: 38.94 kB / 439.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.623e-06/0.2604, allocations: 0 / 439.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003838/0.2642, allocations: 1.772 MB / 441.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.2643, allocations: 56.06 kB / 441.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002271/0.2645, allocations: 211.3 kB / 441.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.852e-05/0.2646, allocations: 37.7 kB / 441.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.2647, allocations: 157.1 kB / 441.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000183/0.2649, allocations: 230 kB / 441.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.265, allocations: 94.33 kB / 442 MB, free: 12.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.2652, allocations: 342.8 kB / 442.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000248/0.2654, allocations: 145.2 kB / 442.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002546/0.2657, allocations: 153.8 kB / 442.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005362/0.2662, allocations: 357.9 kB / 442.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.2662, allocations: 0 / 442.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006956/0.2669, allocations: 461.1 kB / 443.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.884e-05/0.267, allocations: 11.98 kB / 443.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.267, allocations: 3.938 kB / 443.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.267, allocations: 4 kB / 443.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004617/0.2674, allocations: 115.8 kB / 443.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.2674, allocations: 4 kB / 443.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.2676, allocations: 15.98 kB / 443.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.427e-05/0.2677, allocations: 19.98 kB / 443.5 MB, free: 10.57 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.0002092/0.2679, allocations: 165.7 kB / 443.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.747e-05/0.2679, allocations: 39.77 kB / 443.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.2681, allocations: 51.27 kB / 443.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.2681, allocations: 11.94 kB / 443.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.2681, allocations: 4 kB / 443.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.2681, allocations: 7.922 kB / 443.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001861/0.2699, allocations: 1.196 MB / 445 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.966e-06/0.27, allocations: 8 kB / 445 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004635/0.2704, allocations: 115.8 kB / 445.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.778e-06/0.2704, allocations: 8 kB / 445.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/0.2705, allocations: 19.98 kB / 445.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.136e-06/0.2705, allocations: 11.94 kB / 445.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.2705, allocations: 4 kB / 445.2 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.2716, allocations: 0.8456 MB / 446 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.308e-05/0.2717, allocations: 39.77 kB / 446.1 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.494e-05/0.2717, allocations: 20.03 kB / 446.1 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002228/0.2719, allocations: 16 kB / 446.1 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.022e-05/0.272, allocations: 52.23 kB / 446.2 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.859e-05/0.2721, allocations: 20 kB / 446.2 MB, free: 7.754 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001351/0.2722, allocations: 160.5 kB / 446.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2722, allocations: 0 / 446.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003922/0.2726, allocations: 96 kB / 446.4 MB, free: 7.504 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.001442/0.274, allocations: 1.394 MB / 447.8 MB, free: 6.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006411/0.2747, allocations: 387.7 kB / 448.2 MB, free: 5.645 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.2747, allocations: 0 / 448.2 MB, free: 5.645 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003569/0.275, allocations: 227 kB / 448.4 MB, free: 5.426 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006273/0.2757, allocations: 97.83 kB / 448.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004644/0.2803, allocations: 3.679 MB / 452.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001973/0.2805, allocations: 199.3 kB / 452.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001857/0.2807, allocations: 51.33 kB / 452.4 MB, free: 1.191 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002035/0.2809, allocations: 123.4 kB / 452.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2809, allocations: 0 / 452.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0314/0.3123, allocations: 8.529 MB / 461.1 MB, free: 8.719 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.53, allocations: 7.078 kB / 461.1 MB, free: 8.715 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.893053409992717]