Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical2.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.FirstSteps.Electrical2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.FirstSteps.Electrical2") translateModel(HanserModelica.FirstSteps.Electrical2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.FirstSteps.Electrical2") [: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.003599/0.003599, allocations: 178.8 kB / 7.454 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06022/0.06022, allocations: 8.708 MB / 16.57 MB, free: 0.582 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.442/1.442, allocations: 221.4 MB / 240.5 MB, free: 8.152 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.0009788/0.0009787, allocations: 108.5 kB / 293.5 MB, free: 5.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.801e-06/5.891e-06, allocations: 0 / 352.1 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.2211, allocations: 52.53 MB / 404.6 MB, free: 26.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08836/0.3095, allocations: 75.35 MB / 480 MB, free: 15.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001943/0.3097, allocations: 63.97 kB / 480 MB, free: 15.24 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.0008251/0.3105, allocations: 152.7 kB / 480.2 MB, free: 15.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.3106, allocations: 4.531 kB / 480.2 MB, free: 15.09 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002358/0.3108, allocations: 324 kB / 480.5 MB, free: 14.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.3109, allocations: 8.031 kB / 480.5 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.868e-05/0.3109, allocations: 7.906 kB / 480.5 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.311, allocations: 159.6 kB / 480.7 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.311, allocations: 0.7188 kB / 480.7 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.705e-05/0.3111, allocations: 0 / 480.7 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.147e-05/0.3111, allocations: 9.156 kB / 480.7 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.879e-05/0.3112, allocations: 41.61 kB / 480.7 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.3112, allocations: 4 kB / 480.7 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.3112, allocations: 4.531 kB / 480.7 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.3112, allocations: 0.625 kB / 480.7 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001411/0.3114, allocations: 127.9 kB / 480.8 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.906e-05/0.3114, allocations: 25.75 kB / 480.9 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.873e-05/0.3115, allocations: 17.45 kB / 480.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.806e-06/0.3115, allocations: 0 / 480.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/0.3115, allocations: 32.06 kB / 480.9 MB, free: 14.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=3): time 1.041e-06/0.3115, allocations: 0 / 480.9 MB, free: 14.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=3): time 0.000123/0.3117, allocations: 50.44 kB / 481 MB, free: 14.15 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.5e-05/0.3117, allocations: 55.41 kB / 481 MB, free: 14.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.27e-05/0.3118, allocations: 85.94 kB / 481.1 MB, free: 14 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.3118, allocations: 25.7 kB / 481.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.183e-05/0.3118, allocations: 85.11 kB / 481.2 MB, free: 13.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.605e-05/0.3118, allocations: 15.83 kB / 481.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.765e-06/0.3119, allocations: 0.9688 kB / 481.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.63e-05/0.3119, allocations: 310.8 kB / 481.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.309e-05/0.312, allocations: 5.062 kB / 481.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.133e-05/0.312, allocations: 8 kB / 481.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.773e-05/0.312, allocations: 4.5 kB / 481.6 MB, free: 13.54 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.312, allocations: 0 / 481.6 MB, free: 13.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.038e-05/0.3121, allocations: 48.44 kB / 481.6 MB, free: 13.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.3121, allocations: 4 kB / 481.6 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.3121, allocations: 0 / 481.6 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.3121, allocations: 0 / 481.6 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.633e-05/0.3122, allocations: 19.92 kB / 481.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.537e-06/0.3122, allocations: 3.938 kB / 481.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.772e-05/0.3123, allocations: 0 / 481.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.3123, allocations: 5.688 kB / 481.6 MB, free: 13.45 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 (4): * Single equations (assignments): 4 * 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 5.607e-05/0.3123, allocations: 104.9 kB / 481.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.997e-06/0.3124, allocations: 0 / 481.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.254e-05/0.3124, allocations: 7.688 kB / 481.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.3124, allocations: 0 / 481.7 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3124, allocations: 7.938 kB / 481.7 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3124, allocations: 3.906 kB / 481.8 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.462e-05/0.3125, allocations: 138.2 kB / 481.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3125, allocations: 0 / 481.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.235e-05/0.3126, allocations: 8 kB / 481.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3126, allocations: 384 / 481.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.3126, allocations: 0 / 481.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.3126, allocations: 3.984 kB / 481.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3126, allocations: 0 / 481.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000117/0.3127, allocations: 88.17 kB / 482 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.218e-05/0.3128, allocations: 77.11 kB / 482.1 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.3128, allocations: 7.906 kB / 482.1 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.948e-05/0.3128, allocations: 0 / 482.1 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.438e-05/0.3129, allocations: 4 kB / 482.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-06/0.3129, allocations: 0 / 482.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.955e-05/0.3129, allocations: 79.28 kB / 482.2 MB, free: 12.86 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001805/0.3131, allocations: 12.06 kB / 482.2 MB, free: 12.84 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001002/0.3132, allocations: 95.28 kB / 482.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.677e-05/0.3133, allocations: 8 kB / 482.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3133, allocations: 8 kB / 482.3 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.216e-05/0.3133, allocations: 7.938 kB / 482.3 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.264e-05/0.3134, allocations: 0 / 482.3 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002617/0.3137, allocations: 121 kB / 482.4 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/0.3139, allocations: 0.6915 MB / 483.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3139, allocations: 0 / 483.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of Templates: time 0.001647/0.3156, allocations: 268.4 kB / 483.4 MB, free: 11.6 MB / 362.7 MB make -j1 -f HanserModelica_HanserModelica.FirstSteps.Electrical2.makefile (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical2.sim & ./HanserModelica_HanserModelica.FirstSteps.Electrical2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe 2>&1)