Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: 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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 108.4 kB / 18.36 MB, free: 4.633 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.002307/0.002308, allocations: 191 kB / 19.29 MB, free: 3.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.366/1.366, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 47.94 kB / 282.1 MB, free: 2.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09194/0.0933, allocations: 46.63 MB / 328.7 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003729/0.09707, allocations: 2.599 MB / 331.3 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006706/0.09777, allocations: 374.6 kB / 331.7 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.09789, allocations: 4 kB / 331.7 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.09807, allocations: 63.38 kB / 331.7 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001585/0.09824, allocations: 91.12 kB / 331.8 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000294/0.09854, allocations: 91.88 kB / 331.9 MB, free: 0.543 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003436/0.09889, allocations: 378.4 kB / 332.3 MB, free: 176 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000227/0.09913, allocations: 111.1 kB / 332.4 MB, free: 64 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.0993, allocations: 143.5 kB / 332.5 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002026/0.09951, allocations: 159.3 kB / 332.7 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.862e-05/0.09956, allocations: 28 kB / 332.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.76e-05/0.09961, allocations: 32 kB / 332.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.456e-05/0.09969, allocations: 75.75 kB / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001589/0.09985, allocations: 163.2 kB / 333 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003457/0.1002, allocations: 370.6 kB / 333.4 MB, free: 15.11 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1002, allocations: 0 / 333.4 MB, free: 15.11 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1002, allocations: 0 / 333.4 MB, free: 15.11 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.1002, allocations: 4 kB / 333.4 MB, free: 15.11 MB / 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.001124/0.1014, allocations: 0.6314 MB / 334 MB, free: 14.42 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.1014, allocations: 8.031 kB / 334 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.657e-05/0.1015, allocations: 36.56 kB / 334 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003799/0.1019, allocations: 263.6 kB / 334.3 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.317e-05/0.1019, allocations: 24.94 kB / 334.3 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.858e-05/0.102, allocations: 32.3 kB / 334.3 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005427/0.1026, allocations: 277.4 kB / 334.6 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.1026, allocations: 4.094 kB / 334.6 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.1026, allocations: 15.92 kB / 334.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.1026, allocations: 8 kB / 334.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005726/0.1032, allocations: 274 kB / 334.9 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.1046, allocations: 0.7834 MB / 335.7 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006278/0.1052, allocations: 358.8 kB / 336 MB, free: 12.26 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000363/0.1056, allocations: 188.8 kB / 336.2 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.746e-05/0.1056, allocations: 7.984 kB / 336.2 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.1057, allocations: 38.56 kB / 336.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.734e-06/0.1057, allocations: 0 / 336.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=63): time 0.004132/0.1098, allocations: 1.961 MB / 338.2 MB, free: 9.965 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/0.1099, allocations: 59.97 kB / 338.3 MB, free: 9.895 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/0.1101, allocations: 195 kB / 338.5 MB, free: 9.691 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.784e-05/0.1101, allocations: 41.7 kB / 338.5 MB, free: 9.645 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.1103, allocations: 152.8 kB / 338.7 MB, free: 9.488 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001705/0.1104, allocations: 216.8 kB / 338.9 MB, free: 9.273 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.1106, allocations: 90.25 kB / 339 MB, free: 9.176 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.1108, allocations: 346.7 kB / 339.3 MB, free: 8.828 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003162/0.1111, allocations: 161 kB / 339.5 MB, free: 8.672 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003114/0.1114, allocations: 169 kB / 339.6 MB, free: 8.508 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006586/0.1121, allocations: 376 kB / 340 MB, free: 8.137 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1121, allocations: 0 / 340 MB, free: 8.137 MB / 286.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008035/0.1129, allocations: 490.7 kB / 340.5 MB, free: 7.652 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.1129, allocations: 8 kB / 340.5 MB, free: 7.645 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1129, allocations: 4 kB / 340.5 MB, free: 7.641 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.113, allocations: 0 / 340.5 MB, free: 7.641 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004806/0.1134, allocations: 123.8 kB / 340.6 MB, free: 7.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.1135, allocations: 0 / 340.6 MB, free: 7.52 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001884/0.1137, allocations: 27.97 kB / 340.6 MB, free: 7.492 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.393e-05/0.1137, allocations: 19.94 kB / 340.7 MB, free: 7.473 MB / 286.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.0001588/0.1139, allocations: 157.7 kB / 340.8 MB, free: 7.309 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.023e-05/0.114, allocations: 39.61 kB / 340.9 MB, free: 7.27 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.1141, allocations: 51.33 kB / 340.9 MB, free: 7.223 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.1141, allocations: 8 kB / 340.9 MB, free: 7.215 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.1141, allocations: 0 / 340.9 MB, free: 7.215 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.1141, allocations: 3.984 kB / 340.9 MB, free: 7.211 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001949/0.1161, allocations: 1.309 MB / 342.2 MB, free: 5.781 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.1161, allocations: 4 kB / 342.2 MB, free: 5.777 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004907/0.1166, allocations: 124.4 kB / 342.4 MB, free: 5.656 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.242e-05/0.1166, allocations: 11.94 kB / 342.4 MB, free: 5.645 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/0.1167, allocations: 23.94 kB / 342.4 MB, free: 5.621 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.816e-06/0.1167, allocations: 15.92 kB / 342.4 MB, free: 5.605 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.415e-06/0.1167, allocations: 4 kB / 342.4 MB, free: 5.602 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001275/0.118, allocations: 0.8721 MB / 343.3 MB, free: 4.66 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.785e-05/0.1181, allocations: 120.7 kB / 343.4 MB, free: 4.523 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.026e-05/0.1181, allocations: 16 kB / 343.4 MB, free: 4.508 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002607/0.1184, allocations: 23.98 kB / 343.4 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.915e-05/0.1185, allocations: 55.58 kB / 343.5 MB, free: 4.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.092e-05/0.1185, allocations: 23.98 kB / 343.5 MB, free: 4.406 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.00011/0.1186, allocations: 144.4 kB / 343.7 MB, free: 4.266 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1186, allocations: 0 / 343.7 MB, free: 4.266 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003782/0.119, allocations: 96 kB / 343.7 MB, free: 4.172 MB / 286.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.000136/0.1192, allocations: 123.1 kB / 343.9 MB, free: 4.043 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008105/0.12, allocations: 442.9 kB / 344.3 MB, free: 3.609 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.12, allocations: 0 / 344.3 MB, free: 3.609 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004277/0.1204, allocations: 247.7 kB / 344.5 MB, free: 3.367 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006326/0.1211, allocations: 92.95 kB / 344.6 MB, free: 3.277 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001572/0.1227, allocations: 1.013 MB / 345.6 MB, free: 2.18 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.123, allocations: 0.7894 MB / 346.4 MB, free: 1.367 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001687/0.1232, allocations: 47.25 kB / 346.5 MB, free: 1.32 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.1233, allocations: 39.42 kB / 346.5 MB, free: 1.281 MB / 286.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1233, allocations: 4 kB / 346.5 MB, free: 1.277 MB / 286.1 MB Notification: Performance of Templates: time 0.00769/0.131, allocations: 4.104 MB / 350.6 MB, free: 13.18 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches