Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.conf.json 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/HanserModelica 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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 HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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) Running command: translateModel(HanserModelica.Machines.TestDoubleLayer7over9,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9") translateModel(HanserModelica.Machines.TestDoubleLayer7over9,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9") [: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/Complex 4.0.0+maint.om/package.mo): time 0.002172/0.002172, allocations: 175.3 kB / 7.451 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03906/0.03906, allocations: 8.704 MB / 16.57 MB, free: 448 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 221.4 MB / 240.5 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001189/0.00119, allocations: 89.64 kB / 293.5 MB, free: 7.441 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.036e-05/1.104e-05, allocations: 0 / 352.1 MB, free: 12.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2185/0.2185, allocations: 52.54 MB / 404.6 MB, free: 27.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09523/0.3138, allocations: 79.68 MB / 484.3 MB, free: 11.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001871/0.314, allocations: 67.95 kB / 484.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.02474/0.3388, allocations: 9.244 MB / 493.6 MB, free: 1.906 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.3388, allocations: 4 kB / 493.6 MB, free: 1.902 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003898/0.3392, allocations: 402 kB / 494 MB, free: 1.465 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.3393, allocations: 8.031 kB / 494 MB, free: 1.457 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00032/0.3396, allocations: 111.1 kB / 494.1 MB, free: 1.348 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001946/0.3416, allocations: 0.7635 MB / 494.9 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.219e-05/0.3416, allocations: 150.6 kB / 495 MB, free: 400 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.236e-05/0.3417, allocations: 154.6 kB / 495.2 MB, free: 244 kB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.668e-05/0.3417, allocations: 150.6 kB / 495.3 MB, free: 92 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.544e-05/0.3418, allocations: 105 kB / 495.4 MB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.439e-05/0.3419, allocations: 75.28 kB / 495.5 MB, free: 15.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.351e-05/0.3419, allocations: 150.6 kB / 495.6 MB, free: 15.76 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.436e-05/0.342, allocations: 162.4 kB / 495.8 MB, free: 15.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002601/0.3423, allocations: 442.5 kB / 496.2 MB, free: 15.13 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.195e-05/0.3423, allocations: 169.1 kB / 496.4 MB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.222e-05/0.3424, allocations: 80.14 kB / 496.5 MB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.3424, allocations: 83.28 kB / 496.6 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.633e-05/0.3425, allocations: 105.8 kB / 496.7 MB, free: 14.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 1.553e-06/0.3425, allocations: 3.938 kB / 496.7 MB, free: 14.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 8.347e-05/0.3426, allocations: 37.55 kB / 496.7 MB, free: 14.63 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.3426, allocations: 51.41 kB / 496.8 MB, free: 14.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.3427, allocations: 138.9 kB / 496.9 MB, free: 14.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.086e-05/0.3428, allocations: 25.7 kB / 496.9 MB, free: 14.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.775e-05/0.3428, allocations: 92.12 kB / 497 MB, free: 14.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.182e-06/0.3428, allocations: 4 kB / 497 MB, free: 14.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.5e-07/0.3428, allocations: 0 / 497 MB, free: 14.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.3429, allocations: 326.7 kB / 497.3 MB, free: 13.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.896e-06/0.3429, allocations: 0 / 497.3 MB, free: 13.97 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.615e-06/0.3429, allocations: 0 / 497.3 MB, free: 13.97 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.18e-05/0.343, allocations: 75.28 kB / 497.4 MB, free: 13.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.358e-05/0.343, allocations: 75.28 kB / 497.5 MB, free: 13.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.165e-05/0.3431, allocations: 33.61 kB / 497.5 MB, free: 13.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.3431, allocations: 12 kB / 497.5 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.762e-05/0.3431, allocations: 79.22 kB / 497.6 MB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.451e-05/0.3432, allocations: 150.6 kB / 497.7 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.241e-05/0.3432, allocations: 79.27 kB / 497.8 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.705e-05/0.3433, allocations: 158.5 kB / 498 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.088e-05/0.3433, allocations: 79.28 kB / 498.1 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.3434, allocations: 75.28 kB / 498.1 MB, free: 13.16 MB / 378.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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 9.253e-05/0.3435, allocations: 259.5 kB / 498.4 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.9e-05/0.3435, allocations: 117 kB / 498.5 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.493e-05/0.3436, allocations: 116.6 kB / 498.6 MB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.713e-05/0.3437, allocations: 180.3 kB / 498.8 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.696e-05/0.3437, allocations: 184.2 kB / 499 MB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.499e-05/0.3438, allocations: 180.3 kB / 499.1 MB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002116/0.344, allocations: 397.8 kB / 499.5 MB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-05/0.3441, allocations: 108.9 kB / 499.6 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.912e-05/0.3441, allocations: 101.9 kB / 499.7 MB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.261e-05/0.3442, allocations: 176.3 kB / 499.9 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.934e-05/0.3442, allocations: 188.2 kB / 0.4884 GB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.533e-05/0.3443, allocations: 184.2 kB / 0.4885 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-05/0.3444, allocations: 176.3 kB / 0.4887 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001229/0.3445, allocations: 308 kB / 0.489 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.908e-05/0.3446, allocations: 190 kB / 0.4892 GB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.192e-05/0.3446, allocations: 196.2 kB / 0.4894 GB, free: 9.973 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.997e-05/0.3447, allocations: 101 kB / 0.4895 GB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.015e-05/0.3448, allocations: 184.2 kB / 0.4897 GB, free: 9.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.133e-05/0.3448, allocations: 108.9 kB / 0.4898 GB, free: 9.566 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.887e-05/0.3449, allocations: 120.1 kB / 0.4899 GB, free: 9.449 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000257/0.3452, allocations: 4 kB / 0.4899 GB, free: 9.445 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0001604/0.3453, allocations: 219.1 kB / 0.4901 GB, free: 9.227 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 2.982e-05/0.3454, allocations: 8 kB / 0.4901 GB, free: 9.219 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.3454, allocations: 0 / 0.4901 GB, free: 9.219 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.032e-06/0.3454, allocations: 0 / 0.4901 GB, free: 9.219 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003348/0.3457, allocations: 0.5302 MB / 0.4906 GB, free: 8.684 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000243/0.346, allocations: 178.9 kB / 0.4908 GB, free: 8.484 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002522/0.3462, allocations: 0.7124 MB / 0.4915 GB, free: 7.746 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.3463, allocations: 0 / 0.4915 GB, free: 7.746 MB / 378.7 MB Notification: Performance of Templates: time 0.002474/0.3487, allocations: 0.558 MB / 0.492 GB, free: 7.195 MB / 378.7 MB make -j1 -f HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.makefile (rm -f HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.sim & ./HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe 2>&1)