Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Classes.MixedDeclaration.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.Classes.MixedDeclaration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Classes.MixedDeclaration") translateModel(HanserModelica.Classes.MixedDeclaration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Classes.MixedDeclaration") [: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.002301/0.002301, allocations: 180.4 kB / 7.456 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03821/0.03821, allocations: 8.712 MB / 16.58 MB, free: 444 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.254/1.254, allocations: 221.4 MB / 240.5 MB, free: 8.207 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.0009505/0.0009507, allocations: 110.1 kB / 293.5 MB, free: 7.426 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.005e-06/8.035e-06, allocations: 0 / 352.1 MB, free: 12.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2614, allocations: 52.54 MB / 404.6 MB, free: 27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1004/0.3619, allocations: 75.75 MB / 480.4 MB, free: 15.14 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001992/0.3621, allocations: 68.89 kB / 480.4 MB, free: 15.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.0007812/0.3629, allocations: 132.8 kB / 480.6 MB, free: 14.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.363, allocations: 0.9688 kB / 480.6 MB, free: 14.95 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002225/0.3632, allocations: 313.4 kB / 480.9 MB, free: 14.6 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.3632, allocations: 8.031 kB / 480.9 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.827e-05/0.3633, allocations: 8.5 kB / 480.9 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001465/0.3634, allocations: 159.1 kB / 481 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.3634, allocations: 2.438 kB / 481 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.083e-05/0.3635, allocations: 4 kB / 481 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 2.584e-05/0.3635, allocations: 0 / 481 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.765e-05/0.3636, allocations: 47.34 kB / 481.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.3636, allocations: 0.8125 kB / 481.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.545e-06/0.3636, allocations: 0 / 481.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3636, allocations: 0.625 kB / 481.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003346/0.3639, allocations: 449.8 kB / 481.5 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.837e-05/0.364, allocations: 173.7 kB / 481.7 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.506e-05/0.3641, allocations: 80.7 kB / 481.8 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.3641, allocations: 79.88 kB / 481.9 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.119e-05/0.3642, allocations: 114.9 kB / 482 MB, free: 13.39 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 9.61e-07/0.3642, allocations: 0.6875 kB / 482 MB, free: 13.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 7.113e-05/0.3643, allocations: 33.61 kB / 482 MB, free: 13.35 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.251e-05/0.3643, allocations: 52.34 kB / 482.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.773e-05/0.3644, allocations: 100.9 kB / 482.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.337e-06/0.3644, allocations: 26.45 kB / 482.2 MB, free: 13.15 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.19e-05/0.3645, allocations: 90.02 kB / 482.3 MB, free: 13.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.357e-06/0.3645, allocations: 4 kB / 482.3 MB, free: 13.05 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-06/0.3645, allocations: 0 / 482.3 MB, free: 13.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.3646, allocations: 310.8 kB / 482.6 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.722e-06/0.3646, allocations: 0 / 482.6 MB, free: 12.74 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.705e-05/0.3646, allocations: 19.25 kB / 482.6 MB, free: 12.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.768e-05/0.3647, allocations: 4.766 kB / 482.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3647, allocations: 0 / 482.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001033/0.3648, allocations: 42.23 kB / 482.6 MB, free: 12.67 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.3648, allocations: 9.031 kB / 482.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3648, allocations: 0 / 482.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.3648, allocations: 0.7812 kB / 482.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.517e-05/0.3649, allocations: 4 kB / 482.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.3649, allocations: 128 / 482.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.081e-05/0.3649, allocations: 4 kB / 482.7 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-06/0.3649, allocations: 0 / 482.7 MB, free: 12.65 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.731e-05/0.365, allocations: 188.2 kB / 482.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.813e-05/0.3651, allocations: 113.1 kB / 483 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.04e-05/0.3651, allocations: 104.1 kB / 483.1 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.512e-05/0.3652, allocations: 180.3 kB / 483.2 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.234e-05/0.3653, allocations: 188.2 kB / 483.4 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.657e-05/0.3654, allocations: 180.2 kB / 483.6 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001969/0.3656, allocations: 381.8 kB / 484 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.039e-05/0.3657, allocations: 104.9 kB / 484.1 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.323e-05/0.3657, allocations: 105 kB / 484.2 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-05/0.3658, allocations: 184.2 kB / 484.3 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.124e-05/0.3658, allocations: 184.2 kB / 484.5 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.947e-05/0.3659, allocations: 176.6 kB / 484.7 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.047e-05/0.366, allocations: 176.3 kB / 484.9 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001244/0.3661, allocations: 311.8 kB / 485.2 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.21e-05/0.3662, allocations: 186 kB / 485.4 MB, free: 9.773 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.1e-05/0.3662, allocations: 185.2 kB / 485.5 MB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.694e-05/0.3663, allocations: 105 kB / 485.6 MB, free: 9.477 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.885e-05/0.3664, allocations: 176.3 kB / 485.8 MB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.752e-05/0.3665, allocations: 108.9 kB / 485.9 MB, free: 9.184 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.729e-05/0.3665, allocations: 87.22 kB / 486 MB, free: 9.098 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002249/0.3667, allocations: 8 kB / 486 MB, free: 9.09 MB / 362.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.0001184/0.3669, allocations: 167.7 kB / 486.2 MB, free: 8.914 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.443e-05/0.3669, allocations: 4 kB / 486.2 MB, free: 8.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.367, allocations: 0 / 486.2 MB, free: 8.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.072e-06/0.367, allocations: 0 / 486.2 MB, free: 8.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003173/0.3673, allocations: 0.5341 MB / 486.7 MB, free: 8.371 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001872/0.3675, allocations: 119.2 kB / 486.8 MB, free: 8.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002773/0.3678, allocations: 0.6919 MB / 487.5 MB, free: 7.512 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3678, allocations: 0 / 487.5 MB, free: 7.512 MB / 362.7 MB Notification: Performance of Templates: time 0.001692/0.3695, allocations: 182.9 kB / 487.7 MB, free: 7.34 MB / 362.7 MB make -j1 -f HanserModelica_HanserModelica.Classes.MixedDeclaration.makefile (rm -f HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; mkfifo HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe >> ../files/HanserModelica_HanserModelica.Classes.MixedDeclaration.sim & ./HanserModelica_HanserModelica.Classes.MixedDeclaration -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1)