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.0014/0.0014, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001524/0.001524, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 227.4 MB / 246.3 MB, free: 9.066 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 64.11 kB / 306.4 MB, free: 0.7422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09369/0.09496, allocations: 50.52 MB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003745/0.09873, allocations: 2.723 MB / 359.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.1002, allocations: 0.7288 MB / 360.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002446/0.1005, allocations: 7.938 kB / 360.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001972/0.1007, allocations: 39.69 kB / 360.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000383/0.1011, allocations: 87.31 kB / 360.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003084/0.1014, allocations: 79.86 kB / 360.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004084/0.1018, allocations: 374.3 kB / 360.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002005/0.1021, allocations: 103.6 kB / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000175/0.1022, allocations: 127.5 kB / 361.1 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002255/0.1025, allocations: 163.2 kB / 361.3 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.064e-05/0.1025, allocations: 20 kB / 361.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.127e-05/0.1026, allocations: 20 kB / 361.3 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.986e-05/0.1027, allocations: 63.75 kB / 361.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001546/0.1028, allocations: 163.1 kB / 361.5 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003914/0.1032, allocations: 366.9 kB / 361.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1032, allocations: 0 / 361.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1032, allocations: 4 kB / 361.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.1033, allocations: 0 / 361.9 MB, free: 9.156 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.001017/0.1043, allocations: 0.6182 MB / 362.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.1043, allocations: 12.03 kB / 362.5 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.742e-05/0.1044, allocations: 62.67 kB / 362.6 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.795e-05/0.1045, allocations: 36.56 kB / 362.6 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002827/0.1048, allocations: 276.5 kB / 362.9 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.585e-05/0.1048, allocations: 28.78 kB / 362.9 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.949e-05/0.1048, allocations: 28 kB / 363 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005105/0.1054, allocations: 258 kB / 363.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.1054, allocations: 0 / 363.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.782e-05/0.1054, allocations: 20 kB / 363.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/0.1054, allocations: 11.98 kB / 363.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003719/0.1058, allocations: 226.5 kB / 363.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.107, allocations: 0.7999 MB / 364.3 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005106/0.1076, allocations: 336.6 kB / 364.6 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002389/0.1078, allocations: 182.2 kB / 364.8 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.142e-05/0.1079, allocations: 4.375 kB / 364.8 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.1079, allocations: 42.88 kB / 364.8 MB, free: 6.078 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.593e-06/0.1079, allocations: 0 / 364.8 MB, free: 6.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.003604/0.1115, allocations: 1.9 MB / 366.7 MB, free: 4.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.1116, allocations: 55.97 kB / 366.8 MB, free: 4.023 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.1118, allocations: 208.5 kB / 367 MB, free: 3.809 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.1118, allocations: 41.64 kB / 367 MB, free: 3.762 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.234e-05/0.1119, allocations: 152.9 kB / 367.2 MB, free: 3.605 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.112, allocations: 220.8 kB / 367.4 MB, free: 3.387 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.1122, allocations: 94.33 kB / 367.5 MB, free: 3.289 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.1123, allocations: 342.8 kB / 367.8 MB, free: 2.945 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002302/0.1125, allocations: 149.2 kB / 368 MB, free: 2.797 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002151/0.1127, allocations: 153.8 kB / 368.1 MB, free: 2.652 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000566/0.1133, allocations: 353.6 kB / 368.5 MB, free: 2.305 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1133, allocations: 0 / 368.5 MB, free: 2.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006163/0.1139, allocations: 456.9 kB / 368.9 MB, free: 1.852 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.114, allocations: 8 kB / 368.9 MB, free: 1.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.114, allocations: 3.984 kB / 368.9 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.114, allocations: 7.938 kB / 368.9 MB, free: 1.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004134/0.1144, allocations: 119.8 kB / 369 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.1144, allocations: 4 kB / 369 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001626/0.1146, allocations: 16 kB / 369.1 MB, free: 1.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.901e-05/0.1146, allocations: 19.98 kB / 369.1 MB, free: 1.676 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.0001435/0.1148, allocations: 161.7 kB / 369.2 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.566e-05/0.1149, allocations: 35.62 kB / 369.3 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.115, allocations: 59.27 kB / 369.3 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.115, allocations: 4 kB / 369.3 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.115, allocations: 0 / 369.3 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.115, allocations: 7.984 kB / 369.3 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1413/0.2563, allocations: 1.294 MB / 370.6 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.278e-05/0.2564, allocations: 6.172 kB / 370.6 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005725/0.257, allocations: 120.8 kB / 370.8 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.562e-05/0.257, allocations: 7.766 kB / 370.8 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.253e-05/0.2571, allocations: 19.14 kB / 370.8 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.156e-05/0.2571, allocations: 10.97 kB / 370.8 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.2571, allocations: 4.938 kB / 370.8 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/0.2583, allocations: 0.8416 MB / 371.6 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.957e-05/0.2584, allocations: 115.1 kB / 371.7 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.695e-05/0.2584, allocations: 18.47 kB / 371.8 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002479/0.2587, allocations: 18.34 kB / 371.8 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.658e-05/0.2588, allocations: 52.84 kB / 371.8 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.54e-05/0.2588, allocations: 25.06 kB / 371.9 MB, free: 19.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001236/0.259, allocations: 145.5 kB / 372 MB, free: 19.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.61e-07/0.259, allocations: 0 / 372 MB, free: 19.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005243/0.2595, allocations: 101 kB / 372.1 MB, free: 19.38 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.00112/0.2606, allocations: 1.394 MB / 373.5 MB, free: 18.56 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007469/0.2614, allocations: 411.8 kB / 373.9 MB, free: 18.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2614, allocations: 0.75 kB / 373.9 MB, free: 18.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003524/0.2617, allocations: 239.1 kB / 374.1 MB, free: 18.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006925/0.2624, allocations: 83.98 kB / 374.2 MB, free: 18.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00389/0.2663, allocations: 3.824 MB / 378 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002061/0.2666, allocations: 0.7968 MB / 378.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002033/0.2668, allocations: 52.06 kB / 378.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002576/0.267, allocations: 123 kB / 379 MB, free: 14.97 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2671, allocations: 1.156 kB / 379 MB, free: 14.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2622/0.5293, allocations: 7.361 MB / 386.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/0.5295, allocations: 206.1 kB / 386.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.003/2.532, allocations: 0 / 386.6 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