Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap") translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.7477/0.7477, allocations: 110.8 MB / 118 MB, free: 14.6 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001725/0.001725, allocations: 164 kB / 143.7 MB, free: 4.918 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.983e-06/7.003e-06, allocations: 0 / 173.5 MB, free: 23.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04082/0.04085, allocations: 25.17 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1461/0.187, allocations: 33.08 MB / 231.7 MB, free: 4.676 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001692/0.1872, allocations: 58.5 kB / 231.8 MB, free: 4.676 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.01319/0.2004, allocations: 4.941 MB / 236.7 MB, free: 4.309 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.2004, allocations: 3.875 kB / 236.7 MB, free: 4.309 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0008346/0.2013, allocations: 0.5417 MB / 237.2 MB, free: 3.883 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.2013, allocations: 9.406 kB / 237.3 MB, free: 3.883 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.721e-05/0.2014, allocations: 31.81 kB / 237.3 MB, free: 3.867 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001554/0.2016, allocations: 199.7 kB / 237.5 MB, free: 3.648 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/0.2016, allocations: 12.62 kB / 237.5 MB, free: 3.645 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.369e-05/0.2017, allocations: 15.22 kB / 237.5 MB, free: 3.645 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003827/0.2021, allocations: 185 kB / 237.7 MB, free: 3.645 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003493/0.2025, allocations: 188.2 kB / 237.9 MB, free: 3.605 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.2025, allocations: 18.73 kB / 237.9 MB, free: 3.594 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.479e-05/0.2025, allocations: 5.641 kB / 237.9 MB, free: 3.59 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.2026, allocations: 3.719 kB / 237.9 MB, free: 3.59 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.2037, allocations: 0.6908 MB / 238.6 MB, free: 3.312 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000242/0.2039, allocations: 153.8 kB / 238.7 MB, free: 3.293 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001914/0.2041, allocations: 140.8 kB / 238.9 MB, free: 3.277 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.2042, allocations: 3.125 kB / 238.9 MB, free: 3.277 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.2042, allocations: 39.12 kB / 238.9 MB, free: 3.234 MB / 170.7 MB Notification: Performance of pre-optimization done (n=35): time 1.583e-06/0.2042, allocations: 3.188 kB / 238.9 MB, free: 3.234 MB / 170.7 MB Notification: Performance of matching and sorting (n=55): time 0.002236/0.2065, allocations: 1.383 MB / 240.3 MB, free: 2.676 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.323e-05/0.2065, allocations: 55.78 kB / 240.4 MB, free: 2.613 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.2066, allocations: 150.2 kB / 240.5 MB, free: 2.516 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.417e-05/0.2067, allocations: 25.7 kB / 240.5 MB, free: 2.484 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.473e-05/0.2067, allocations: 135.9 kB / 240.7 MB, free: 2.379 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.2068, allocations: 178.1 kB / 240.8 MB, free: 2.258 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.645e-05/0.2068, allocations: 4 kB / 240.8 MB, free: 2.254 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.795e-05/0.2069, allocations: 337.7 kB / 241.2 MB, free: 1.941 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001664/0.2071, allocations: 119.9 kB / 241.3 MB, free: 1.938 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.2073, allocations: 116.2 kB / 241.4 MB, free: 1.938 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001907/0.2075, allocations: 131 kB / 241.5 MB, free: 1.93 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.2075, allocations: 0 / 241.5 MB, free: 1.93 MB / 170.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0004691/0.2079, allocations: 362.1 kB / 241.9 MB, free: 1.875 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.208, allocations: 8.844 kB / 241.9 MB, free: 1.875 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.208, allocations: 0 / 241.9 MB, free: 1.875 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.208, allocations: 4 kB / 241.9 MB, free: 1.871 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004731/0.2085, allocations: 120.5 kB / 242 MB, free: 1.863 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.2085, allocations: 0 / 242 MB, free: 1.863 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002058/0.2087, allocations: 24.22 kB / 242 MB, free: 1.859 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.061e-05/0.2087, allocations: 19.14 kB / 242.1 MB, free: 1.859 MB / 170.7 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 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.253e-05/0.2088, allocations: 108.9 kB / 242.2 MB, free: 1.746 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.689e-05/0.2089, allocations: 30.88 kB / 242.2 MB, free: 1.73 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.209, allocations: 37.53 kB / 242.2 MB, free: 1.723 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.209, allocations: 7.781 kB / 242.2 MB, free: 1.723 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/0.209, allocations: 4 kB / 242.2 MB, free: 1.719 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.209, allocations: 6.531 kB / 242.2 MB, free: 1.715 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001491/0.2105, allocations: 1.089 MB / 243.3 MB, free: 1.227 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.2106, allocations: 11.53 kB / 243.3 MB, free: 1.223 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000491/0.2111, allocations: 122.1 kB / 243.5 MB, free: 1.211 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.017e-06/0.2111, allocations: 7.75 kB / 243.5 MB, free: 1.211 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.947e-05/0.2111, allocations: 5.984 kB / 243.5 MB, free: 1.211 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.514e-06/0.2111, allocations: 12.05 kB / 243.5 MB, free: 1.207 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/0.2111, allocations: 7.812 kB / 243.5 MB, free: 1.203 MB / 170.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008187/0.212, allocations: 0.9244 MB / 244.4 MB, free: 0.582 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.908e-05/0.212, allocations: 106.2 kB / 244.5 MB, free: 484 kB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.251e-05/0.2121, allocations: 4.578 kB / 244.5 MB, free: 484 kB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002707/0.2124, allocations: 27.5 kB / 244.6 MB, free: 480 kB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.571e-05/0.2125, allocations: 42.25 kB / 244.6 MB, free: 472 kB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.847e-05/0.2125, allocations: 24.98 kB / 244.6 MB, free: 468 kB / 170.7 MB Notification: Performance of sort global known variables: time 8.126e-05/0.2126, allocations: 122.4 kB / 244.7 MB, free: 392 kB / 170.7 MB Notification: Performance of remove unused functions: time 0.000391/0.213, allocations: 65.59 kB / 244.8 MB, free: 392 kB / 170.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000132/0.2131, allocations: 111.4 kB / 244.9 MB, free: 292 kB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004382/0.2136, allocations: 321.8 kB / 245.2 MB, free: 272 kB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2136, allocations: 0 / 245.2 MB, free: 272 kB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002405/0.2138, allocations: 198.3 kB / 245.4 MB, free: 248 kB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005729/0.2144, allocations: 50.89 kB / 245.5 MB, free: 248 kB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.2157, allocations: 0.7507 MB / 246.2 MB, free: 15.76 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004861/0.2162, allocations: 0.8319 MB / 247.1 MB, free: 15.04 MB / 186.7 MB Notification: Performance of SimCode: time 6.41e-07/0.2162, allocations: 0 / 247.1 MB, free: 15.04 MB / 186.7 MB Notification: Performance of Templates: time 0.008482/0.2247, allocations: 3.94 MB / 251 MB, free: 13.36 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1)