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.001299/0.001299, allocations: 120.4 kB / 20.44 MB, free: 1.461 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.001444/0.001444, allocations: 212.1 kB / 23.74 MB, free: 4.695 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.41/1.41, allocations: 230.5 MB / 257.4 MB, free: 8.188 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 60.05 kB / 377.8 MB, free: 3.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2481, allocations: 53.42 MB / 431.2 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003761/0.2518, allocations: 2.704 MB / 433.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001182/0.253, allocations: 0.7287 MB / 434.6 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.2531, allocations: 11.94 kB / 434.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.2533, allocations: 55.5 kB / 434.7 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.2535, allocations: 99.06 kB / 434.8 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002726/0.2538, allocations: 95.81 kB / 434.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003862/0.2541, allocations: 386.3 kB / 435.2 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001878/0.2543, allocations: 83.56 kB / 435.3 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001662/0.2545, allocations: 159.4 kB / 435.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002259/0.2547, allocations: 167.3 kB / 435.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.983e-05/0.2548, allocations: 28 kB / 435.7 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.008e-05/0.2548, allocations: 35.94 kB / 435.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.416e-05/0.2549, allocations: 67.77 kB / 435.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001663/0.255, allocations: 175.1 kB / 435.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004002/0.2554, allocations: 386.8 kB / 436.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2555, allocations: 0 / 436.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2555, allocations: 0 / 436.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.2555, allocations: 0 / 436.3 MB, free: 1.648 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.000971/0.2564, allocations: 0.5558 MB / 436.9 MB, free: 1.062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.2565, allocations: 8.031 kB / 436.9 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.464e-05/0.2565, allocations: 66.73 kB / 436.9 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.276e-05/0.2566, allocations: 36.7 kB / 437 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003525/0.2569, allocations: 218.9 kB / 437.2 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.227e-05/0.257, allocations: 28.78 kB / 437.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.612e-05/0.257, allocations: 31.95 kB / 437.3 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004291/0.2575, allocations: 258.1 kB / 437.5 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.2575, allocations: 0 / 437.5 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.2575, allocations: 16 kB / 437.5 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.2575, allocations: 7.938 kB / 437.5 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003919/0.2579, allocations: 238.4 kB / 437.8 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001271/0.2592, allocations: 0.7602 MB / 438.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000484/0.2597, allocations: 317.9 kB / 438.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002469/0.2599, allocations: 165.5 kB / 439 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.329e-05/0.2599, allocations: 4.375 kB / 439 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.26, allocations: 34.94 kB / 439 MB, free: 14.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.553e-06/0.26, allocations: 0 / 439 MB, free: 14.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003627/0.2636, allocations: 1.772 MB / 440.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.2636, allocations: 60.06 kB / 440.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002047/0.2639, allocations: 203.3 kB / 441.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.516e-05/0.2639, allocations: 41.7 kB / 441.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.264, allocations: 153.1 kB / 441.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000171/0.2642, allocations: 230 kB / 441.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001298/0.2643, allocations: 90.34 kB / 441.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.2644, allocations: 346.8 kB / 441.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002491/0.2647, allocations: 145.2 kB / 442 MB, free: 11.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000246/0.2649, allocations: 153.8 kB / 442.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005309/0.2655, allocations: 357.9 kB / 442.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2655, allocations: 4 kB / 442.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006677/0.2661, allocations: 457.1 kB / 443 MB, free: 10.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.2661, allocations: 11.94 kB / 443 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.2662, allocations: 0 / 443 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.2662, allocations: 3.938 kB / 443 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004481/0.2666, allocations: 127.8 kB / 443.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.2666, allocations: 4 kB / 443.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.2668, allocations: 12 kB / 443.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.2668, allocations: 16 kB / 443.2 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.0001787/0.267, allocations: 173.6 kB / 443.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.689e-05/0.2671, allocations: 39.77 kB / 443.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.2672, allocations: 47.28 kB / 443.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.2672, allocations: 8 kB / 443.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.2672, allocations: 0 / 443.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.2672, allocations: 3.984 kB / 443.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001804/0.269, allocations: 1.265 MB / 444.7 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.269, allocations: 4 kB / 444.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004511/0.2695, allocations: 119.8 kB / 444.8 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.2695, allocations: 4 kB / 444.8 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.7e-05/0.2695, allocations: 20.56 kB / 444.8 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.683e-06/0.2695, allocations: 8 kB / 444.9 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.283e-06/0.2695, allocations: 15.88 kB / 444.9 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.2706, allocations: 0.8416 MB / 445.7 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.516e-05/0.2707, allocations: 39.8 kB / 445.7 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.417e-05/0.2707, allocations: 16 kB / 445.8 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002206/0.2709, allocations: 16 kB / 445.8 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.772e-05/0.271, allocations: 56.23 kB / 445.8 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-05/0.2711, allocations: 27.98 kB / 445.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001313/0.2712, allocations: 148.5 kB / 446 MB, free: 7.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2712, allocations: 0 / 446 MB, free: 7.535 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004063/0.2716, allocations: 96 kB / 446.1 MB, free: 7.441 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.001423/0.273, allocations: 1.398 MB / 447.5 MB, free: 5.957 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006421/0.2737, allocations: 387.7 kB / 447.9 MB, free: 5.578 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2737, allocations: 0 / 447.9 MB, free: 5.578 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000337/0.274, allocations: 231.2 kB / 448.1 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000649/0.2747, allocations: 88.55 kB / 448.2 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004595/0.2793, allocations: 3.68 MB / 451.9 MB, free: 1.398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004677/0.2797, allocations: 0.7972 MB / 452.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001864/0.2799, allocations: 55.33 kB / 452.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002125/0.2801, allocations: 127.4 kB / 452.8 MB, free: 396 kB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2801, allocations: 0 / 452.8 MB, free: 396 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04151/0.3216, allocations: 8.324 MB / 461.2 MB, free: 8.215 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.46, allocations: 3.984 kB / 461.2 MB, free: 8.211 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.733452334068716]