Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 104 kB / 16.51 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 222.9 MB / 241.1 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 42.95 kB / 300.1 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08852/0.08977, allocations: 49.45 MB / 349.5 MB, free: 4.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003653/0.09345, allocations: 2.649 MB / 352.2 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007334/0.09421, allocations: 382.6 kB / 352.5 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001809/0.09441, allocations: 8 kB / 352.5 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002023/0.09464, allocations: 39.62 kB / 352.6 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002423/0.09492, allocations: 79.31 kB / 352.7 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002685/0.09519, allocations: 91.84 kB / 352.7 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003502/0.09555, allocations: 350.5 kB / 353.1 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001908/0.09575, allocations: 87.64 kB / 353.2 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.09591, allocations: 127.6 kB / 353.3 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001746/0.09609, allocations: 167.2 kB / 353.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.401e-05/0.09614, allocations: 20 kB / 353.5 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.347e-05/0.0962, allocations: 20 kB / 353.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.573e-05/0.09626, allocations: 59.75 kB / 353.6 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001367/0.09641, allocations: 151.2 kB / 353.7 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003798/0.09679, allocations: 350.9 kB / 354 MB, free: 176 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.0968, allocations: 0 / 354 MB, free: 176 kB / 286.1 MB Notification: Performance of FrontEnd: time 5.01e-07/0.09681, allocations: 0 / 354 MB, free: 176 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.09682, allocations: 0 / 354 MB, free: 176 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.000986/0.09781, allocations: 0.6278 MB / 354.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.09786, allocations: 8.031 kB / 354.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.152e-05/0.09793, allocations: 62.67 kB / 354.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.189e-05/0.098, allocations: 40.56 kB / 354.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002628/0.09826, allocations: 279.3 kB / 355.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.0983, allocations: 16.94 kB / 355.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.416e-05/0.09837, allocations: 40.27 kB / 355.1 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005966/0.09898, allocations: 269.4 kB / 355.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.09901, allocations: 7.938 kB / 355.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.09904, allocations: 8 kB / 355.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.09905, allocations: 12 kB / 355.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005306/0.09959, allocations: 270.1 kB / 355.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.1008, allocations: 0.795 MB / 356.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005516/0.1014, allocations: 361.7 kB / 356.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003156/0.1017, allocations: 204.7 kB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.1018, allocations: 4 kB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.1018, allocations: 34.56 kB / 357.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.493e-06/0.1018, allocations: 4 kB / 357.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.004091/0.1059, allocations: 1.952 MB / 359 MB, free: 10.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.1059, allocations: 59.91 kB / 359.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.1061, allocations: 199 kB / 359.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.228e-05/0.1062, allocations: 33.7 kB / 359.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.612e-05/0.1063, allocations: 156.9 kB / 359.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.1064, allocations: 212.8 kB / 359.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.1065, allocations: 90.25 kB / 359.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.1066, allocations: 350.7 kB / 360.1 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003121/0.107, allocations: 157 kB / 360.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000302/0.1073, allocations: 173 kB / 360.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006979/0.108, allocations: 380 kB / 360.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.108, allocations: 0 / 360.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007622/0.1088, allocations: 482.6 kB / 361.2 MB, free: 8.641 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.1088, allocations: 4 kB / 361.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1088, allocations: 0 / 361.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.1088, allocations: 8 kB / 361.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000447/0.1093, allocations: 115.9 kB / 361.4 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.563e-05/0.1093, allocations: 4 kB / 361.4 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002218/0.1096, allocations: 27.91 kB / 361.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.1096, allocations: 16 kB / 361.4 MB, free: 8.469 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 (69): * Single equations (assignments): 69 * 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.0001499/0.1098, allocations: 165.7 kB / 361.6 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.06e-05/0.1098, allocations: 39.53 kB / 361.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.519e-05/0.1099, allocations: 55.27 kB / 361.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.1099, allocations: 4 kB / 361.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.11, allocations: 0 / 361.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.11, allocations: 11.92 kB / 361.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001829/0.1118, allocations: 1.318 MB / 363 MB, free: 6.758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.1118, allocations: 4 kB / 363 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004551/0.1123, allocations: 123.8 kB / 363.1 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.417e-05/0.1123, allocations: 8 kB / 363.1 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.428e-05/0.1123, allocations: 16 kB / 363.2 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.135e-06/0.1124, allocations: 11.98 kB / 363.2 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.346e-06/0.1124, allocations: 7.938 kB / 363.2 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001246/0.1136, allocations: 0.8746 MB / 364.1 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.851e-05/0.1137, allocations: 112.7 kB / 364.2 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.116e-05/0.1138, allocations: 20.09 kB / 364.2 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.114, allocations: 23.98 kB / 364.2 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.911e-05/0.1141, allocations: 67.73 kB / 364.3 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.84e-05/0.1141, allocations: 20 kB / 364.3 MB, free: 5.391 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.891e-05/0.1142, allocations: 136.6 kB / 364.4 MB, free: 5.258 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1142, allocations: 0 / 364.4 MB, free: 5.258 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000371/0.1146, allocations: 96 kB / 364.5 MB, free: 5.164 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 (63): * Single equations (assignments): 63 * 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.001612/0.1162, allocations: 1.443 MB / 366 MB, free: 3.637 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007576/0.117, allocations: 438.7 kB / 366.4 MB, free: 3.207 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.117, allocations: 0 / 366.4 MB, free: 3.207 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003952/0.1174, allocations: 248.7 kB / 366.6 MB, free: 2.965 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006357/0.1181, allocations: 83.67 kB / 366.7 MB, free: 2.883 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1402/0.2583, allocations: 3.811 MB / 370.5 MB, free: 24.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000245/0.2585, allocations: 0.7973 MB / 371.3 MB, free: 23.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002169/0.2588, allocations: 45.14 kB / 371.4 MB, free: 23.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.2589, allocations: 122.7 kB / 371.5 MB, free: 23.88 MB / 302.1 MB Notification: Performance of SimCode: time 1.253e-06/0.259, allocations: 1.125 kB / 371.5 MB, free: 23.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4133/0.6723, allocations: 7.007 MB / 378.5 MB, free: 22.99 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000161/0.6725, allocations: 210.6 kB / 378.7 MB, free: 22.74 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.053/2.725, allocations: 1.094 kB / 378.7 MB, free: 22.74 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches