Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap") translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001268/0.001268, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001324/0.001324, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.469/1.469, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 70.47 kB / 307.9 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1152, allocations: 50.55 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004478/0.1197, allocations: 2.671 MB / 361.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001411/0.1212, allocations: 0.7325 MB / 361.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001556/0.1214, allocations: 4 kB / 361.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001704/0.1215, allocations: 51.45 kB / 361.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002108/0.1218, allocations: 103 kB / 362 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000327/0.1221, allocations: 95.81 kB / 362.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004198/0.1225, allocations: 386.3 kB / 362.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002558/0.1228, allocations: 115.1 kB / 362.6 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001791/0.123, allocations: 143.5 kB / 362.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000247/0.1232, allocations: 179.2 kB / 362.9 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.616e-05/0.1233, allocations: 28 kB / 362.9 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.936e-05/0.1234, allocations: 32 kB / 362.9 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7e-05/0.1234, allocations: 67.77 kB / 363 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001855/0.1236, allocations: 171.1 kB / 363.2 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004344/0.1241, allocations: 378.9 kB / 363.5 MB, free: 8.789 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1241, allocations: 0 / 363.5 MB, free: 8.789 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1241, allocations: 0 / 363.5 MB, free: 8.789 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.1241, allocations: 0 / 363.5 MB, free: 8.789 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.001188/0.1253, allocations: 0.6237 MB / 364.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.1253, allocations: 8.031 kB / 364.2 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.281e-05/0.1254, allocations: 36.56 kB / 364.2 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003587/0.1258, allocations: 268.6 kB / 364.5 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.372e-05/0.1258, allocations: 25.03 kB / 364.5 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.02e-05/0.1259, allocations: 35.92 kB / 364.5 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004594/0.1264, allocations: 254.1 kB / 364.8 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.1264, allocations: 0 / 364.8 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.451e-05/0.1264, allocations: 16 kB / 364.8 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.315e-06/0.1265, allocations: 8 kB / 364.8 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004185/0.1269, allocations: 230.5 kB / 365 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0014/0.1283, allocations: 0.8154 MB / 365.8 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005345/0.1288, allocations: 338.2 kB / 366.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000277/0.1291, allocations: 181.5 kB / 366.4 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.488e-05/0.1292, allocations: 4.375 kB / 366.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.1292, allocations: 38.94 kB / 366.4 MB, free: 5.777 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.603e-06/0.1292, allocations: 0 / 366.4 MB, free: 5.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.003979/0.1332, allocations: 1.892 MB / 368.3 MB, free: 3.793 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.1333, allocations: 67.91 kB / 368.4 MB, free: 3.715 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002408/0.1335, allocations: 208.5 kB / 368.6 MB, free: 3.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.802e-05/0.1336, allocations: 37.7 kB / 368.6 MB, free: 3.457 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.1337, allocations: 148.9 kB / 368.7 MB, free: 3.305 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001945/0.1339, allocations: 224.8 kB / 369 MB, free: 3.082 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001388/0.134, allocations: 90.34 kB / 369.1 MB, free: 2.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.1342, allocations: 350.7 kB / 369.4 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002545/0.1345, allocations: 149.2 kB / 369.5 MB, free: 2.488 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002476/0.1347, allocations: 149.8 kB / 369.7 MB, free: 2.344 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005708/0.1353, allocations: 353.6 kB / 370 MB, free: 2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1353, allocations: 0 / 370 MB, free: 2 MB / 302.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007181/0.1361, allocations: 464.8 kB / 370.5 MB, free: 1.539 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.1361, allocations: 4 kB / 370.5 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.1361, allocations: 0 / 370.5 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.1361, allocations: 7.938 kB / 370.5 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004656/0.1366, allocations: 119.9 kB / 370.6 MB, free: 1.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.1366, allocations: 0 / 370.6 MB, free: 1.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001745/0.1368, allocations: 23.94 kB / 370.6 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.434e-05/0.1368, allocations: 19.98 kB / 370.7 MB, free: 1.367 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.0001841/0.137, allocations: 153.8 kB / 370.8 MB, free: 1.207 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.885e-05/0.1371, allocations: 39.61 kB / 370.8 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.1372, allocations: 51.33 kB / 370.9 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.1372, allocations: 7.938 kB / 370.9 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.1373, allocations: 0 / 370.9 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.1373, allocations: 0 / 370.9 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2126/0.3499, allocations: 1.304 MB / 372.2 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.295e-05/0.3499, allocations: 5.375 kB / 372.2 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005065/0.3504, allocations: 118.2 kB / 372.3 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.61e-05/0.3505, allocations: 7.812 kB / 372.3 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.58e-05/0.3505, allocations: 20.91 kB / 372.4 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.227e-05/0.3505, allocations: 14.69 kB / 372.4 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.3505, allocations: 5.312 kB / 372.4 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.3516, allocations: 0.8418 MB / 373.2 MB, free: 19.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.27e-05/0.3517, allocations: 112.5 kB / 373.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.366e-05/0.3518, allocations: 23.16 kB / 373.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.352, allocations: 20.91 kB / 373.4 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.243e-05/0.3521, allocations: 50.39 kB / 373.4 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.36e-05/0.3521, allocations: 21.83 kB / 373.4 MB, free: 19.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001386/0.3523, allocations: 151 kB / 373.6 MB, free: 19.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3523, allocations: 0 / 373.6 MB, free: 19.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004324/0.3527, allocations: 100.8 kB / 373.7 MB, free: 19.42 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.0001526/0.3529, allocations: 118.6 kB / 373.8 MB, free: 19.33 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007616/0.3537, allocations: 433.3 kB / 374.2 MB, free: 19.31 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.3537, allocations: 1.312 kB / 374.2 MB, free: 19.31 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000373/0.354, allocations: 245.2 kB / 374.5 MB, free: 19.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007631/0.3548, allocations: 95.36 kB / 374.6 MB, free: 19.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/0.3563, allocations: 1.059 MB / 375.6 MB, free: 18.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002474/0.3565, allocations: 0.7969 MB / 376.4 MB, free: 17.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.3566, allocations: 41.88 kB / 376.5 MB, free: 17.82 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.3567, allocations: 0 / 376.5 MB, free: 17.82 MB / 302.1 MB Notification: Performance of Templates: time 0.008343/0.365, allocations: 4.721 MB / 381.2 MB, free: 17.36 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches