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.00174/0.00174, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001998/0.001998, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.556/1.556, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001634/0.001634, allocations: 60.38 kB / 307 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1112, allocations: 50.53 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004321/0.1155, allocations: 2.677 MB / 360.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.1172, allocations: 0.7248 MB / 361 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003029/0.1175, allocations: 7.938 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002315/0.1178, allocations: 47.52 kB / 361 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000383/0.1182, allocations: 103 kB / 361.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004017/0.1186, allocations: 95.81 kB / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006135/0.1192, allocations: 390.3 kB / 361.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002532/0.1195, allocations: 119.1 kB / 361.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.1196, allocations: 135.5 kB / 361.9 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002913/0.1199, allocations: 171.2 kB / 362 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.462e-05/0.12, allocations: 32 kB / 362.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.769e-05/0.1201, allocations: 32 kB / 362.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.932e-05/0.1202, allocations: 71.75 kB / 362.2 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001801/0.1203, allocations: 167.2 kB / 362.3 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004385/0.1208, allocations: 378.9 kB / 362.7 MB, free: 8.832 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1208, allocations: 4 kB / 362.7 MB, free: 8.828 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1208, allocations: 4 kB / 362.7 MB, free: 8.824 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.328e-06/0.1208, allocations: 0 / 362.7 MB, free: 8.824 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.001021/0.1218, allocations: 0.612 MB / 363.3 MB, free: 8.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.1219, allocations: 12.03 kB / 363.3 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.07e-05/0.122, allocations: 70.72 kB / 363.4 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.102e-05/0.1221, allocations: 36.56 kB / 363.4 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003452/0.1224, allocations: 276.5 kB / 363.7 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.1224, allocations: 24.78 kB / 363.7 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.616e-05/0.1225, allocations: 32 kB / 363.8 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004008/0.1229, allocations: 258.1 kB / 364 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.1229, allocations: 0 / 364 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.575e-05/0.123, allocations: 15.94 kB / 364 MB, free: 7.402 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.123, allocations: 8 kB / 364 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003692/0.1234, allocations: 238.4 kB / 364.3 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.1246, allocations: 0.8037 MB / 365.1 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000561/0.1252, allocations: 332.7 kB / 365.4 MB, free: 5.973 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000256/0.1254, allocations: 178.2 kB / 365.6 MB, free: 5.797 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.187e-05/0.1255, allocations: 8.359 kB / 365.6 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.1255, allocations: 38.94 kB / 365.6 MB, free: 5.742 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 3.427e-06/0.1255, allocations: 3.984 kB / 365.6 MB, free: 5.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.00368/0.1292, allocations: 1.907 MB / 367.5 MB, free: 3.738 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.1293, allocations: 59.91 kB / 367.6 MB, free: 3.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002022/0.1295, allocations: 208.5 kB / 367.8 MB, free: 3.453 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.299e-05/0.1295, allocations: 37.7 kB / 367.8 MB, free: 3.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.1296, allocations: 148.9 kB / 368 MB, free: 3.258 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.1298, allocations: 224.8 kB / 368.2 MB, free: 3.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.1299, allocations: 90.34 kB / 368.3 MB, free: 2.941 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1301, allocations: 342.8 kB / 368.6 MB, free: 2.598 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002313/0.1303, allocations: 149.2 kB / 368.8 MB, free: 2.449 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002309/0.1306, allocations: 153.8 kB / 368.9 MB, free: 2.301 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005706/0.1311, allocations: 357.5 kB / 369.3 MB, free: 1.953 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-06/0.1311, allocations: 0 / 369.3 MB, free: 1.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006591/0.1318, allocations: 460.9 kB / 369.7 MB, free: 1.496 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.1318, allocations: 4 kB / 369.7 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1319, allocations: 0 / 369.7 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.1319, allocations: 7.938 kB / 369.7 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004644/0.1323, allocations: 119.8 kB / 369.8 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.739e-06/0.1324, allocations: 4 kB / 369.8 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.1325, allocations: 12 kB / 369.8 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.966e-05/0.1326, allocations: 20 kB / 369.9 MB, free: 1.332 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.0001639/0.1327, allocations: 169.6 kB / 370 MB, free: 1.156 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.975e-05/0.1328, allocations: 31.62 kB / 370.1 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.1329, allocations: 55.28 kB / 370.1 MB, free: 1.074 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1329, allocations: 4 kB / 370.1 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.1329, allocations: 0 / 370.1 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.133, allocations: 7.984 kB / 370.1 MB, free: 1.062 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1853/0.3182, allocations: 1.303 MB / 371.4 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.3183, allocations: 4.062 kB / 371.4 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005534/0.3189, allocations: 117.1 kB / 371.5 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.211e-05/0.3189, allocations: 11.56 kB / 371.6 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.461e-05/0.3189, allocations: 18.81 kB / 371.6 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.069e-05/0.3189, allocations: 12.66 kB / 371.6 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.319, allocations: 5.656 kB / 371.6 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001163/0.3201, allocations: 0.8372 MB / 372.4 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.072e-05/0.3202, allocations: 119.3 kB / 372.6 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.486e-05/0.3203, allocations: 17.42 kB / 372.6 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002414/0.3205, allocations: 22.25 kB / 372.6 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.854e-05/0.3206, allocations: 53.88 kB / 372.6 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.318e-05/0.3207, allocations: 20.67 kB / 372.7 MB, free: 19.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001269/0.3208, allocations: 148.4 kB / 372.8 MB, free: 19.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3208, allocations: 0 / 372.8 MB, free: 19.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004373/0.3213, allocations: 99 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.001282/0.3225, allocations: 1.394 MB / 374.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008355/0.3234, allocations: 434.6 kB / 374.7 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3234, allocations: 1.094 kB / 374.7 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003071/0.3237, allocations: 237.9 kB / 375 MB, free: 18.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007493/0.3245, allocations: 100.8 kB / 375.1 MB, free: 18.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004177/0.3287, allocations: 3.678 MB / 378.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.3289, allocations: 0.7964 MB / 379.5 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002425/0.3292, allocations: 50.52 kB / 379.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002246/0.3294, allocations: 127.7 kB / 379.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3294, allocations: 1.062 kB / 379.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03051/0.3599, allocations: 7.69 MB / 387.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.012/8.372, allocations: 0.75 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 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.csv","/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