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.00117/0.00117, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 59.67 kB / 307 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1037, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004257/0.108, allocations: 2.669 MB / 360.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001687/0.1097, allocations: 0.7248 MB / 361 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002869/0.11, allocations: 4 kB / 361 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002203/0.1102, allocations: 55.45 kB / 361 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003612/0.1106, allocations: 103.1 kB / 361.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003492/0.111, allocations: 95.81 kB / 361.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004996/0.1115, allocations: 382.3 kB / 361.6 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002318/0.1117, allocations: 119.1 kB / 361.7 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.1119, allocations: 143.5 kB / 361.9 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.1121, allocations: 175.2 kB / 362 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.593e-05/0.1122, allocations: 28 kB / 362.1 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.273e-05/0.1122, allocations: 32 kB / 362.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.531e-05/0.1123, allocations: 67.77 kB / 362.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001483/0.1124, allocations: 171.2 kB / 362.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003486/0.1128, allocations: 386.8 kB / 362.7 MB, free: 8.852 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1128, allocations: 0 / 362.7 MB, free: 8.852 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1128, allocations: 0 / 362.7 MB, free: 8.852 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.1128, allocations: 4 kB / 362.7 MB, free: 8.848 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.0009213/0.1138, allocations: 0.6159 MB / 363.3 MB, free: 8.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.1138, allocations: 8.031 kB / 363.3 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.832e-05/0.1139, allocations: 66.72 kB / 363.4 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.715e-05/0.1139, allocations: 36.56 kB / 363.4 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002853/0.1142, allocations: 276.5 kB / 363.7 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.428e-05/0.1143, allocations: 28.78 kB / 363.7 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.189e-05/0.1143, allocations: 28 kB / 363.8 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000428/0.1147, allocations: 258.1 kB / 364 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.1148, allocations: 0 / 364 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.005e-05/0.1148, allocations: 19.98 kB / 364 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.1148, allocations: 8 kB / 364 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003933/0.1152, allocations: 230.5 kB / 364.3 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.1167, allocations: 0.8037 MB / 365.1 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004811/0.1172, allocations: 340.6 kB / 365.4 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002774/0.1175, allocations: 182.2 kB / 365.6 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.1175, allocations: 8.359 kB / 365.6 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.396e-05/0.1176, allocations: 34.94 kB / 365.6 MB, free: 5.766 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.593e-06/0.1176, allocations: 4 kB / 365.6 MB, free: 5.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.003634/0.1212, allocations: 1.9 MB / 367.5 MB, free: 3.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.1213, allocations: 63.91 kB / 367.6 MB, free: 3.695 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002183/0.1215, allocations: 208.5 kB / 367.8 MB, free: 3.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.396e-05/0.1216, allocations: 37.7 kB / 367.8 MB, free: 3.438 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.1217, allocations: 148.9 kB / 368 MB, free: 3.285 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/0.1219, allocations: 224.7 kB / 368.2 MB, free: 3.062 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.122, allocations: 90.34 kB / 368.3 MB, free: 2.969 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1222, allocations: 346.8 kB / 368.6 MB, free: 2.621 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002563/0.1224, allocations: 145.2 kB / 368.8 MB, free: 2.477 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002386/0.1227, allocations: 153.8 kB / 368.9 MB, free: 2.328 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005277/0.1232, allocations: 357.6 kB / 369.3 MB, free: 1.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.1232, allocations: 0 / 369.3 MB, free: 1.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006794/0.1239, allocations: 460.8 kB / 369.7 MB, free: 1.523 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.1239, allocations: 8 kB / 369.7 MB, free: 1.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1239, allocations: 0 / 369.7 MB, free: 1.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.124, allocations: 3.938 kB / 369.7 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004605/0.1244, allocations: 119.8 kB / 369.8 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.1245, allocations: 7.938 kB / 369.8 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/0.1246, allocations: 20 kB / 369.9 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.883e-05/0.1247, allocations: 20 kB / 369.9 MB, free: 1.348 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.000188/0.1249, allocations: 161.7 kB / 370 MB, free: 1.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.851e-05/0.125, allocations: 39.62 kB / 370.1 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.964e-05/0.1251, allocations: 47.28 kB / 370.1 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.345e-06/0.1251, allocations: 8 kB / 370.1 MB, free: 1.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.1251, allocations: 0 / 370.1 MB, free: 1.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.716e-06/0.1251, allocations: 3.984 kB / 370.1 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1736/0.2987, allocations: 1.298 MB / 371.4 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/0.2987, allocations: 5 kB / 371.4 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004901/0.2992, allocations: 120.1 kB / 371.6 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.134e-05/0.2993, allocations: 6.219 kB / 371.6 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.344e-05/0.2993, allocations: 17.31 kB / 371.6 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.023e-05/0.2993, allocations: 11.58 kB / 371.6 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/0.2993, allocations: 8.281 kB / 371.6 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009591/0.3003, allocations: 0.8365 MB / 372.4 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.072e-05/0.3004, allocations: 123 kB / 372.6 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.186e-05/0.3004, allocations: 21.19 kB / 372.6 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002342/0.3007, allocations: 17.88 kB / 372.6 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.3008, allocations: 45.31 kB / 372.6 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.623e-05/0.3008, allocations: 27.52 kB / 372.7 MB, free: 19.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001228/0.301, allocations: 148.3 kB / 372.8 MB, free: 19.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.301, allocations: 2.25 kB / 372.8 MB, free: 19.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004269/0.3014, allocations: 99.19 kB / 372.9 MB, free: 19.46 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.001081/0.3025, allocations: 1.389 MB / 374.3 MB, free: 18.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008449/0.3033, allocations: 434.9 kB / 374.7 MB, free: 18.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3034, allocations: 0 / 374.7 MB, free: 18.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003159/0.3037, allocations: 242.7 kB / 375 MB, free: 18.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006972/0.3044, allocations: 101.2 kB / 375.1 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003807/0.3082, allocations: 3.67 MB / 378.7 MB, free: 15.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002275/0.3085, allocations: 0.7967 MB / 379.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002181/0.3087, allocations: 50.66 kB / 379.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001692/0.3089, allocations: 124.7 kB / 379.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3089, allocations: 0 / 379.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02793/0.3368, allocations: 7.703 MB / 387.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.71/8.047, allocations: 1.062 kB / 387.4 MB, free: 13.39 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