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.0007964/0.0007964, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008612/0.0008612, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8928/0.8928, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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 2.154e-06/2.154e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.209e-05/2.425e-05, allocations: 3.125 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.00314/0.003164, allocations: 2.482 MB / 327 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.00431, allocations: 0.7052 MB / 327.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.004459, allocations: 7.938 kB / 327.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.004606, allocations: 47.52 kB / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001676/0.004774, allocations: 115 kB / 327.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002828/0.005056, allocations: 91.8 kB / 327.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002852/0.005342, allocations: 406 kB / 328.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.005521, allocations: 80.19 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/0.005712, allocations: 223.5 kB / 328.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.005864, allocations: 131.6 kB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.687e-05/0.005911, allocations: 32 kB / 328.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.081e-05/0.005941, allocations: 28 kB / 328.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.898e-05/0.00599, allocations: 75.67 kB / 328.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.075e-05/0.006081, allocations: 123.7 kB / 329 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000319/0.0064, allocations: 382.8 kB / 329.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.006405, allocations: 0 / 329.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.006407, allocations: 4 kB / 329.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.006413, allocations: 0 / 329.4 MB, free: 10.98 MB / 298.7 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.0007336/0.007147, allocations: 0.5481 MB / 329.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.007191, allocations: 11.98 kB / 330 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.669e-05/0.007248, allocations: 66.66 kB / 330 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.486e-05/0.007302, allocations: 40.7 kB / 330.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003357/0.007638, allocations: 218.2 kB / 330.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.444e-05/0.007662, allocations: 28.97 kB / 330.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.94e-05/0.007702, allocations: 28.33 kB / 330.3 MB, free: 9.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000318/0.00802, allocations: 266.1 kB / 330.6 MB, free: 9.715 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.008036, allocations: 8 kB / 330.6 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.008055, allocations: 8 kB / 330.6 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.008062, allocations: 8 kB / 330.6 MB, free: 9.691 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000261/0.008323, allocations: 226.5 kB / 330.8 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009076/0.009231, allocations: 0.6978 MB / 331.5 MB, free: 8.727 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003486/0.009579, allocations: 315.4 kB / 331.8 MB, free: 8.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004277/0.01001, allocations: 161.5 kB / 332 MB, free: 8.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.983e-05/0.01004, allocations: 4.375 kB / 332 MB, free: 8.246 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.01006, allocations: 42.88 kB / 332 MB, free: 8.195 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 2.906e-06/0.01006, allocations: 0 / 332 MB, free: 8.195 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.002456/0.01252, allocations: 1.764 MB / 333.8 MB, free: 6.379 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.113e-05/0.01256, allocations: 60.06 kB / 333.9 MB, free: 6.305 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.01272, allocations: 215.3 kB / 334.1 MB, free: 6.086 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.01274, allocations: 33.7 kB / 334.1 MB, free: 6.047 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.388e-05/0.01282, allocations: 149.2 kB / 334.3 MB, free: 5.895 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.01292, allocations: 241.9 kB / 334.5 MB, free: 5.656 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.087e-05/0.01301, allocations: 90.34 kB / 334.6 MB, free: 5.562 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.253e-05/0.01311, allocations: 346.8 kB / 334.9 MB, free: 5.215 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.01327, allocations: 149.2 kB / 335.1 MB, free: 5.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.01343, allocations: 153.8 kB / 335.2 MB, free: 4.922 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003684/0.0138, allocations: 350 kB / 335.6 MB, free: 4.578 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.0138, allocations: 0 / 335.6 MB, free: 4.578 MB / 298.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0004501/0.01425, allocations: 461.1 kB / 336 MB, free: 4.121 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.01427, allocations: 4 kB / 336 MB, free: 4.117 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.01428, allocations: 4 kB / 336 MB, free: 4.113 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.01429, allocations: 8 kB / 336 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002643/0.01456, allocations: 119.8 kB / 336.1 MB, free: 3.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.01457, allocations: 7.938 kB / 336.1 MB, free: 3.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.401e-05/0.01466, allocations: 16 kB / 336.2 MB, free: 3.965 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.906e-05/0.01468, allocations: 16 kB / 336.2 MB, free: 3.949 MB / 298.7 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.0001259/0.01481, allocations: 157.7 kB / 336.3 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.098e-05/0.01485, allocations: 39.77 kB / 336.4 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.952e-05/0.01493, allocations: 51.33 kB / 336.4 MB, free: 3.695 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.01493, allocations: 4 kB / 336.4 MB, free: 3.691 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.01494, allocations: 8 kB / 336.4 MB, free: 3.684 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.01494, allocations: 7.922 kB / 336.4 MB, free: 3.676 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.01614, allocations: 1.185 MB / 337.6 MB, free: 2.383 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.01614, allocations: 11.88 kB / 337.6 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.01641, allocations: 119.8 kB / 337.8 MB, free: 2.254 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.01641, allocations: 4 kB / 337.8 MB, free: 2.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.34e-05/0.01644, allocations: 20 kB / 337.8 MB, free: 2.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.01644, allocations: 4 kB / 337.8 MB, free: 2.227 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.01645, allocations: 11.94 kB / 337.8 MB, free: 2.215 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007404/0.01719, allocations: 0.8307 MB / 338.6 MB, free: 1.316 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.81e-05/0.01724, allocations: 47.73 kB / 338.7 MB, free: 1.266 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.299e-05/0.01727, allocations: 16 kB / 338.7 MB, free: 1.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.0174, allocations: 16 kB / 338.7 MB, free: 1.234 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.651e-05/0.01747, allocations: 56.3 kB / 338.8 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.98e-05/0.01749, allocations: 23.98 kB / 338.8 MB, free: 1.156 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.789e-05/0.01758, allocations: 156.4 kB / 338.9 MB, free: 1.004 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01758, allocations: 0 / 338.9 MB, free: 1.004 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005349/0.01811, allocations: 96 kB / 339 MB, free: 0.9102 MB / 298.7 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.0009104/0.01902, allocations: 1.398 MB / 340.4 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004485/0.01947, allocations: 388.2 kB / 340.8 MB, free: 15.05 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.01947, allocations: 4 kB / 340.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002184/0.01969, allocations: 227.2 kB / 341 MB, free: 14.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004654/0.02016, allocations: 88.66 kB / 341.1 MB, free: 14.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003111/0.02327, allocations: 3.592 MB / 344.7 MB, free: 10.95 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001278/0.0234, allocations: 199.3 kB / 344.9 MB, free: 10.73 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001501/0.02355, allocations: 51.33 kB / 345 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.02369, allocations: 124.5 kB / 345.1 MB, free: 10.55 MB / 314.7 MB Notification: Performance of SimCode: time 9.32e-07/0.02369, allocations: 0 / 345.1 MB, free: 10.55 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02161/0.04529, allocations: 8.876 MB / 354 MB, free: 1.848 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.861/6.906, allocations: 10.33 kB / 354 MB, free: 1.844 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins/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: 8.535245271399617]