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.001424/0.001424, allocations: 106.2 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001449/0.001449, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 64.05 kB / 306.5 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09897/0.1004, allocations: 50.54 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004237/0.1047, allocations: 2.717 MB / 359.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.1062, allocations: 0.7171 MB / 360.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003932/0.1066, allocations: 4 kB / 360.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002001/0.1068, allocations: 43.69 kB / 360.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002768/0.1071, allocations: 95.23 kB / 360.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003844/0.1075, allocations: 75.92 kB / 360.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005459/0.1081, allocations: 382.3 kB / 361.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002399/0.1083, allocations: 123 kB / 361.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003335/0.1087, allocations: 151.4 kB / 361.4 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002237/0.1089, allocations: 167.2 kB / 361.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.677e-05/0.109, allocations: 28 kB / 361.6 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.232e-05/0.109, allocations: 32 kB / 361.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.348e-05/0.1091, allocations: 67.77 kB / 361.7 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001822/0.1093, allocations: 179.1 kB / 361.8 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004083/0.1097, allocations: 378.9 kB / 362.2 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1097, allocations: 0 / 362.2 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1097, allocations: 0 / 362.2 MB, free: 9.152 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.1098, allocations: 0 / 362.2 MB, free: 9.152 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.001309/0.1111, allocations: 0.6198 MB / 362.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.1111, allocations: 12.02 kB / 362.8 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.085e-05/0.1112, allocations: 58.73 kB / 362.9 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.926e-05/0.1113, allocations: 36.56 kB / 362.9 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000319/0.1116, allocations: 276.5 kB / 363.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.078e-05/0.1116, allocations: 28.77 kB / 363.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.677e-05/0.1117, allocations: 32 kB / 363.3 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004393/0.1122, allocations: 254.1 kB / 363.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.1122, allocations: 0 / 363.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.719e-05/0.1122, allocations: 20 kB / 363.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.1122, allocations: 11.94 kB / 363.5 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003958/0.1126, allocations: 230.5 kB / 363.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001271/0.1139, allocations: 0.8038 MB / 364.6 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004859/0.1144, allocations: 336.6 kB / 364.9 MB, free: 6.301 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002508/0.1147, allocations: 178.2 kB / 365.1 MB, free: 6.125 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.786e-05/0.1147, allocations: 8.375 kB / 365.1 MB, free: 6.117 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.1148, allocations: 38.94 kB / 365.1 MB, free: 6.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.563e-06/0.1148, allocations: 0 / 365.1 MB, free: 6.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.003911/0.1187, allocations: 1.903 MB / 367 MB, free: 4.078 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.1188, allocations: 59.97 kB / 367.1 MB, free: 4.008 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001874/0.1189, allocations: 204.5 kB / 367.3 MB, free: 3.797 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001619/0.1191, allocations: 37.7 kB / 367.3 MB, free: 3.754 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001287/0.1193, allocations: 152.9 kB / 367.5 MB, free: 3.598 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/0.1194, allocations: 220.8 kB / 367.7 MB, free: 3.379 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.1196, allocations: 94.33 kB / 367.8 MB, free: 3.281 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1197, allocations: 346.8 kB / 368.1 MB, free: 2.934 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002522/0.12, allocations: 145.2 kB / 368.3 MB, free: 2.789 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002271/0.1202, allocations: 157.8 kB / 368.4 MB, free: 2.641 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005239/0.1207, allocations: 353.6 kB / 368.8 MB, free: 2.293 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1207, allocations: 0 / 368.8 MB, free: 2.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000724/0.1215, allocations: 460.8 kB / 369.2 MB, free: 1.836 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.1215, allocations: 8 kB / 369.2 MB, free: 1.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.1215, allocations: 0 / 369.2 MB, free: 1.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.1215, allocations: 7.922 kB / 369.2 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004367/0.122, allocations: 115.8 kB / 369.3 MB, free: 1.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.122, allocations: 8 kB / 369.3 MB, free: 1.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002108/0.1222, allocations: 16 kB / 369.4 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.466e-05/0.1223, allocations: 19.98 kB / 369.4 MB, free: 1.664 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.0002143/0.1225, allocations: 157.7 kB / 369.5 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.1226, allocations: 35.62 kB / 369.6 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001243/0.1227, allocations: 55.27 kB / 369.6 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.1228, allocations: 12 kB / 369.6 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.1228, allocations: 0 / 369.6 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.1228, allocations: 7.938 kB / 369.6 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1763/0.2991, allocations: 1.293 MB / 370.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.852e-05/0.2991, allocations: 4.766 kB / 370.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006752/0.2998, allocations: 115.2 kB / 371 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.559e-05/0.2998, allocations: 7.125 kB / 371.1 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.914e-05/0.2999, allocations: 21.19 kB / 371.1 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-05/0.2999, allocations: 11.55 kB / 371.1 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.2999, allocations: 8.297 kB / 371.1 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.301, allocations: 0.8443 MB / 371.9 MB, free: 19.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.145e-05/0.3011, allocations: 110.9 kB / 372 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.478e-05/0.3012, allocations: 17.84 kB / 372.1 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002315/0.3014, allocations: 19.78 kB / 372.1 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.714e-05/0.3015, allocations: 52.78 kB / 372.1 MB, free: 19.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.977e-05/0.3016, allocations: 22 kB / 372.2 MB, free: 19.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002203/0.3019, allocations: 149.7 kB / 372.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3019, allocations: 3.719 kB / 372.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004337/0.3023, allocations: 97.06 kB / 372.4 MB, free: 19.5 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.00121/0.3035, allocations: 1.389 MB / 373.8 MB, free: 18.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.3045, allocations: 438.9 kB / 374.2 MB, free: 18.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.3046, allocations: 1.062 kB / 374.2 MB, free: 18.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003967/0.305, allocations: 242.2 kB / 374.5 MB, free: 18.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007582/0.3057, allocations: 95.7 kB / 374.6 MB, free: 18.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004042/0.3098, allocations: 3.829 MB / 378.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002643/0.3101, allocations: 0.7991 MB / 379.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002262/0.3103, allocations: 46.88 kB / 379.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.3105, allocations: 123.1 kB / 379.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of SimCode: time 1.834e-06/0.3105, allocations: 1.188 kB / 379.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02321/0.3337, allocations: 7.543 MB / 386.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002033/0.334, allocations: 203.8 kB / 387.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.976/2.31, allocations: 0 / 387.1 MB, free: 13.31 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