Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.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.VariablesTypes.ComplexCalculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation") translateModel(HanserModelica.VariablesTypes.ComplexCalculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation") [: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.004906/0.004906, allocations: 178.3 kB / 7.454 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.03946/0.03946, allocations: 8.702 MB / 16.57 MB, free: 0.4922 MB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.204/1.204, allocations: 221.4 MB / 240.5 MB, free: 8.145 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.0009362/0.0009365, allocations: 104.4 kB / 293.5 MB, free: 5.484 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.384e-06/7.524e-06, allocations: 3.938 kB / 352.1 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.2157, allocations: 52.53 MB / 404.6 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09281/0.3086, allocations: 77.12 MB / 481.7 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/0.3089, allocations: 68.69 kB / 481.8 MB, free: 13.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.008205/0.3171, allocations: 2.793 MB / 484.6 MB, free: 10.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.3172, allocations: 0 / 484.6 MB, free: 10.64 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000836/0.318, allocations: 386.6 kB / 485 MB, free: 10.22 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.3181, allocations: 8.812 kB / 485 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.964e-05/0.3181, allocations: 7.906 kB / 485 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000167/0.3183, allocations: 167.5 kB / 485.1 MB, free: 10 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.3183, allocations: 0 / 485.1 MB, free: 10 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.88e-05/0.3184, allocations: 4.938 kB / 485.2 MB, free: 10 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001422/0.3185, allocations: 39.92 kB / 485.2 MB, free: 9.961 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001094/0.3186, allocations: 46.28 kB / 485.2 MB, free: 9.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.3186, allocations: 5 kB / 485.2 MB, free: 9.906 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.3187, allocations: 4 kB / 485.2 MB, free: 9.902 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.3187, allocations: 0 / 485.2 MB, free: 9.902 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002232/0.3189, allocations: 158.8 kB / 485.4 MB, free: 9.711 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001306/0.3191, allocations: 65.05 kB / 485.5 MB, free: 9.641 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.426e-05/0.3191, allocations: 24.98 kB / 485.5 MB, free: 9.613 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.3192, allocations: 3.984 kB / 485.5 MB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.3192, allocations: 30.56 kB / 485.5 MB, free: 9.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.603e-06/0.3192, allocations: 0.5 kB / 485.5 MB, free: 9.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002156/0.3194, allocations: 80.34 kB / 485.6 MB, free: 9.488 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.43e-05/0.3195, allocations: 55.31 kB / 485.7 MB, free: 9.422 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.061e-05/0.3196, allocations: 96.98 kB / 485.7 MB, free: 9.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.3196, allocations: 29.64 kB / 485.8 MB, free: 9.285 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.978e-05/0.3196, allocations: 84.14 kB / 485.9 MB, free: 9.199 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.602e-05/0.3197, allocations: 11.81 kB / 485.9 MB, free: 9.188 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-06/0.3197, allocations: 1.812 kB / 485.9 MB, free: 9.188 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.3198, allocations: 318.8 kB / 486.2 MB, free: 8.867 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.028e-05/0.3199, allocations: 16 kB / 486.2 MB, free: 8.852 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.203e-05/0.3199, allocations: 20 kB / 486.2 MB, free: 8.832 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.853e-05/0.32, allocations: 20 kB / 486.2 MB, free: 8.812 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.32, allocations: 3.906 kB / 486.2 MB, free: 8.809 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001391/0.3201, allocations: 69.69 kB / 486.3 MB, free: 8.734 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.3201, allocations: 11.94 kB / 486.3 MB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.3202, allocations: 0 / 486.3 MB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.3202, allocations: 0 / 486.3 MB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.3203, allocations: 15.92 kB / 486.3 MB, free: 8.707 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.3203, allocations: 0 / 486.3 MB, free: 8.707 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.139e-05/0.3204, allocations: 3.906 kB / 486.3 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.3204, allocations: 4 kB / 486.3 MB, free: 8.699 MB / 362.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 (6): * Single equations (assignments): 6 * 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.148e-05/0.3205, allocations: 105 kB / 486.4 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.479e-05/0.3205, allocations: 3.906 kB / 486.5 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001961/0.3207, allocations: 94.05 kB / 486.5 MB, free: 8.488 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.3207, allocations: 0 / 486.5 MB, free: 8.488 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3207, allocations: 7.938 kB / 486.6 MB, free: 8.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3207, allocations: 3.984 kB / 486.6 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001508/0.3209, allocations: 158.6 kB / 486.7 MB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3209, allocations: 0 / 486.7 MB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.304e-05/0.321, allocations: 19.98 kB / 486.7 MB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.321, allocations: 4 kB / 486.7 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.321, allocations: 0 / 486.7 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.321, allocations: 0 / 486.7 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.321, allocations: 0 / 486.7 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001792/0.3212, allocations: 109 kB / 486.8 MB, free: 8.137 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.746e-05/0.3213, allocations: 89 kB / 486.9 MB, free: 8.031 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.191e-05/0.3213, allocations: 0 / 486.9 MB, free: 8.031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.235e-05/0.3214, allocations: 7.938 kB / 486.9 MB, free: 8.023 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.901e-05/0.3214, allocations: 4 kB / 486.9 MB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-06/0.3214, allocations: 0 / 486.9 MB, free: 8.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.337e-05/0.3215, allocations: 87.22 kB / 487 MB, free: 7.934 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000207/0.3217, allocations: 15.98 kB / 487 MB, free: 7.918 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 (8): * Single equations (assignments): 8 * 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.0001646/0.3218, allocations: 111.2 kB / 487.1 MB, free: 7.801 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001347/0.322, allocations: 48 kB / 487.2 MB, free: 7.754 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.322, allocations: 0 / 487.2 MB, free: 7.754 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.104e-05/0.3221, allocations: 27.94 kB / 487.2 MB, free: 7.727 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001307/0.3222, allocations: 7.891 kB / 487.2 MB, free: 7.719 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002688/0.3225, allocations: 87.77 kB / 487.3 MB, free: 7.609 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003137/0.3228, allocations: 0.7109 MB / 488 MB, free: 6.875 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3228, allocations: 0 / 488 MB, free: 6.875 MB / 362.7 MB Notification: Performance of Templates: time 0.00284/0.3256, allocations: 0.8229 MB / 488.9 MB, free: 6.055 MB / 362.7 MB make -j1 -f HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.makefile (rm -f HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; mkfifo HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; head -c 1048576 < HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe >> ../files/HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.sim & ./HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe 2>&1)