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.001322/0.001322, allocations: 116.5 kB / 18.5 MB, free: 4.434 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.001418/0.001418, allocations: 216.9 kB / 21.47 MB, free: 1.473 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.458/1.458, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.001857/0.001857, allocations: 67.88 kB / 373.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1128, allocations: 53.3 MB / 426.7 MB, free: 5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003857/0.1167, allocations: 2.685 MB / 429.3 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.118, allocations: 0.7365 MB / 430.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.1181, allocations: 7.938 kB / 430.1 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.1183, allocations: 43.52 kB / 430.1 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002045/0.1185, allocations: 111 kB / 430.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003039/0.1188, allocations: 95.81 kB / 430.3 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003897/0.1192, allocations: 386.3 kB / 430.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002008/0.1194, allocations: 83.09 kB / 430.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000153/0.1195, allocations: 143.5 kB / 430.9 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002309/0.1198, allocations: 175.2 kB / 431.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.908e-05/0.1198, allocations: 32 kB / 431.1 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.063e-05/0.1199, allocations: 32 kB / 431.2 MB, free: 476 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.79e-05/0.1199, allocations: 71.75 kB / 431.2 MB, free: 404 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001612/0.1201, allocations: 163.2 kB / 431.4 MB, free: 240 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2417/0.3618, allocations: 391.4 kB / 431.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.3618, allocations: 0 / 431.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3618, allocations: 0 / 431.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.236e-05/0.3618, allocations: 0 / 431.8 MB, free: 8.367 MB / 350.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.001099/0.3629, allocations: 0.6245 MB / 432.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.363, allocations: 11.3 kB / 432.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.017e-05/0.363, allocations: 64.81 kB / 432.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.925e-05/0.3631, allocations: 39.48 kB / 432.5 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004021/0.3635, allocations: 272.6 kB / 432.8 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.167e-05/0.3636, allocations: 23.06 kB / 432.8 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.468e-05/0.3636, allocations: 35.52 kB / 432.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004779/0.3641, allocations: 263.3 kB / 433.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.3641, allocations: 1.875 kB / 433.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.774e-05/0.3642, allocations: 16.59 kB / 433.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.3642, allocations: 10.16 kB / 433.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003994/0.3646, allocations: 229.9 kB / 433.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.3658, allocations: 0.7964 MB / 434.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004239/0.3662, allocations: 318.1 kB / 434.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002372/0.3665, allocations: 162.8 kB / 434.6 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/0.3665, allocations: 6.344 kB / 434.6 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.265e-05/0.3665, allocations: 39.5 kB / 434.6 MB, free: 7.195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.673e-06/0.3665, allocations: 0 / 434.6 MB, free: 7.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003701/0.3702, allocations: 1.91 MB / 436.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.3703, allocations: 64.34 kB / 436.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002161/0.3705, allocations: 209.9 kB / 436.8 MB, free: 6.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.104e-05/0.3705, allocations: 36.36 kB / 436.9 MB, free: 6.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.971e-05/0.3706, allocations: 149 kB / 437 MB, free: 6.312 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.3707, allocations: 236.7 kB / 437.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.3709, allocations: 94.56 kB / 437.3 MB, free: 6.141 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.371, allocations: 343 kB / 437.7 MB, free: 5.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002539/0.3712, allocations: 148.1 kB / 437.8 MB, free: 5.828 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002492/0.3715, allocations: 156.3 kB / 438 MB, free: 5.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005333/0.372, allocations: 352.1 kB / 438.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.372, allocations: 2.969 kB / 438.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007153/0.3727, allocations: 464.1 kB / 438.8 MB, free: 5.426 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.3727, allocations: 4.719 kB / 438.8 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.3728, allocations: 1.188 kB / 438.8 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.3728, allocations: 3.797 kB / 438.8 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004677/0.3732, allocations: 116.6 kB / 438.9 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.3733, allocations: 6.125 kB / 438.9 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.3734, allocations: 21.44 kB / 438.9 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.3735, allocations: 16.22 kB / 438.9 MB, free: 5.402 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.0001568/0.3736, allocations: 162.2 kB / 439.1 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.02e-05/0.3737, allocations: 39.47 kB / 439.1 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001126/0.3738, allocations: 47.22 kB / 439.2 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.3738, allocations: 7 kB / 439.2 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/0.3738, allocations: 7.219 kB / 439.2 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.3738, allocations: 4.203 kB / 439.2 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001927/0.3758, allocations: 1.289 MB / 440.5 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.3758, allocations: 4.188 kB / 440.5 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004843/0.3763, allocations: 125.2 kB / 440.6 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-05/0.3763, allocations: 9.109 kB / 440.6 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.567e-05/0.3763, allocations: 21.69 kB / 440.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.201e-05/0.3763, allocations: 11.2 kB / 440.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/0.3763, allocations: 7.828 kB / 440.7 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.3774, allocations: 0.8389 MB / 441.5 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.563e-05/0.3774, allocations: 113.2 kB / 441.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.314e-05/0.3775, allocations: 17.56 kB / 441.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/0.3777, allocations: 26.47 kB / 441.6 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.3778, allocations: 49.08 kB / 441.7 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.868e-05/0.3779, allocations: 22.42 kB / 441.7 MB, free: 3.719 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001529/0.378, allocations: 148.7 kB / 441.9 MB, free: 3.625 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.378, allocations: 0 / 441.9 MB, free: 3.625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004183/0.3785, allocations: 104.7 kB / 442 MB, free: 3.602 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.001207/0.3797, allocations: 1.394 MB / 443.4 MB, free: 2.523 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007055/0.3804, allocations: 383.7 kB / 443.7 MB, free: 2.406 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.3804, allocations: 1.094 kB / 443.7 MB, free: 2.406 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003487/0.3807, allocations: 229.5 kB / 444 MB, free: 2.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006896/0.3814, allocations: 99.55 kB / 444.1 MB, free: 2.312 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004308/0.3857, allocations: 3.67 MB / 447.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005133/0.3862, allocations: 0.8024 MB / 448.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002345/0.3865, allocations: 50.25 kB / 448.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002169/0.3867, allocations: 127.7 kB / 448.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of SimCode: time 1.272e-06/0.3867, allocations: 0 / 448.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03775/0.4244, allocations: 7.892 MB / 456.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.464/8.888, allocations: 9.516 kB / 456.6 MB, free: 13.39 MB / 366.1 MB " [Timeout remaining time 651] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.345196065027267]