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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008272/0.0008271, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009546/0.0009546, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.203/1.203, allocations: 227.7 MB / 246.8 MB, free: 9.551 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000222/0.0002221, allocations: 12.27 kB / 307.8 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0796/0.07983, allocations: 51.52 MB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002497/0.08237, allocations: 2.347 MB / 361.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.08361, allocations: 0.721 MB / 362.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.0838, allocations: 7.938 kB / 362.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.08395, allocations: 35.69 kB / 362.5 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002419/0.0842, allocations: 87.31 kB / 362.5 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000264/0.08447, allocations: 83.86 kB / 362.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003657/0.08484, allocations: 366.2 kB / 363 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001932/0.08504, allocations: 103.6 kB / 363.1 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.08521, allocations: 131.4 kB / 363.2 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001953/0.08542, allocations: 147.3 kB / 363.4 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.851e-05/0.08546, allocations: 16 kB / 363.4 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.307e-05/0.08551, allocations: 16 kB / 363.4 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.372e-05/0.08557, allocations: 55.77 kB / 363.4 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.08572, allocations: 184.8 kB / 363.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002879/0.08602, allocations: 346.9 kB / 364 MB, free: 8.332 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.08603, allocations: 8 kB / 364 MB, free: 8.324 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.08604, allocations: 3.938 kB / 364 MB, free: 8.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.08605, allocations: 0 / 364 MB, free: 8.32 MB / 302.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.0008452/0.0869, allocations: 0.5693 MB / 364.5 MB, free: 7.699 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.08694, allocations: 8.031 kB / 364.6 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.229e-05/0.08702, allocations: 62.72 kB / 364.6 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.114e-05/0.08709, allocations: 40.47 kB / 364.7 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002828/0.08737, allocations: 276.6 kB / 364.9 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.882e-05/0.08741, allocations: 24.78 kB / 364.9 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.076e-05/0.08747, allocations: 35.89 kB / 365 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004247/0.0879, allocations: 258.1 kB / 365.2 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.08792, allocations: 4 kB / 365.2 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.689e-05/0.08796, allocations: 15.94 kB / 365.3 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.08797, allocations: 8 kB / 365.3 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003736/0.08835, allocations: 230.5 kB / 365.5 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/0.08949, allocations: 0.8039 MB / 366.3 MB, free: 5.848 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004411/0.08994, allocations: 349.9 kB / 366.6 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002428/0.0902, allocations: 178.2 kB / 366.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.062e-05/0.09023, allocations: 8.375 kB / 366.8 MB, free: 5.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.09026, allocations: 34.94 kB / 366.8 MB, free: 5.277 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.423e-06/0.09027, allocations: 0 / 366.8 MB, free: 5.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.003451/0.09372, allocations: 1.927 MB / 368.8 MB, free: 3.262 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.09377, allocations: 55.97 kB / 368.8 MB, free: 3.195 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001771/0.09395, allocations: 216.4 kB / 369 MB, free: 2.973 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.009e-05/0.09399, allocations: 37.7 kB / 369.1 MB, free: 2.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.143e-05/0.09408, allocations: 145 kB / 369.2 MB, free: 2.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.09422, allocations: 224.7 kB / 369.4 MB, free: 2.559 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.154e-05/0.09428, allocations: 53.69 kB / 369.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.09439, allocations: 346.7 kB / 369.8 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002253/0.09463, allocations: 149.2 kB / 370 MB, free: 2.004 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.09485, allocations: 153.8 kB / 370.1 MB, free: 1.859 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004818/0.09534, allocations: 345.6 kB / 370.5 MB, free: 1.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.09535, allocations: 4 kB / 370.5 MB, free: 1.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006089/0.09596, allocations: 468.9 kB / 370.9 MB, free: 1.051 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.09598, allocations: 4 kB / 370.9 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.09599, allocations: 0 / 370.9 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.09601, allocations: 11.94 kB / 370.9 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004086/0.09643, allocations: 115.8 kB / 371.1 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.09645, allocations: 0 / 371.1 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.09662, allocations: 19.98 kB / 371.1 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.009e-05/0.09666, allocations: 20 kB / 371.1 MB, free: 0.8828 MB / 302.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.000147/0.09681, allocations: 165.7 kB / 371.3 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.178e-05/0.09688, allocations: 39.61 kB / 371.3 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.097, allocations: 55.27 kB / 371.3 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.09701, allocations: 8 kB / 371.4 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.09702, allocations: 0 / 371.4 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.09703, allocations: 3.984 kB / 371.4 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1338/0.2309, allocations: 1.294 MB / 372.7 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.2309, allocations: 3.906 kB / 372.7 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004607/0.2314, allocations: 121.3 kB / 372.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.091e-05/0.2314, allocations: 7.516 kB / 372.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.337e-05/0.2314, allocations: 18.61 kB / 372.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.048e-05/0.2314, allocations: 11.95 kB / 372.8 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.2314, allocations: 6.125 kB / 372.8 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008938/0.2323, allocations: 0.842 MB / 373.7 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.687e-05/0.2324, allocations: 110 kB / 373.8 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.004e-05/0.2325, allocations: 19.92 kB / 373.8 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.2327, allocations: 18.67 kB / 373.8 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.845e-05/0.2328, allocations: 54.03 kB / 373.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.869e-05/0.2328, allocations: 21.36 kB / 373.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001021/0.2329, allocations: 156.3 kB / 374 MB, free: 17.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2329, allocations: 3.828 kB / 374 MB, free: 17.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003821/0.2333, allocations: 96.69 kB / 374.1 MB, free: 17.86 MB / 302.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.001009/0.2343, allocations: 1.388 MB / 375.5 MB, free: 17.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006247/0.235, allocations: 402.6 kB / 375.9 MB, free: 17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.235, allocations: 3.719 kB / 375.9 MB, free: 17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003213/0.2353, allocations: 243.1 kB / 376.2 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007123/0.236, allocations: 92.38 kB / 376.2 MB, free: 16.97 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003527/0.2396, allocations: 3.9 MB / 380.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001923/0.2398, allocations: 0.7982 MB / 380.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001784/0.24, allocations: 49.95 kB / 381 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/0.2401, allocations: 128.8 kB / 381.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2401, allocations: 0 / 381.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01633/0.2565, allocations: 7.238 MB / 388.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001416/0.2566, allocations: 205 kB / 388.6 MB, free: 12.15 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/1.968, allocations: 1.531 kB / 388.6 MB, free: 12.15 MB / 302.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches