Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical1.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.Electrical1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.FirstSteps.Electrical1") translateModel(HanserModelica.FirstSteps.Electrical1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.FirstSteps.Electrical1") [: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.003476/0.003476, allocations: 182.8 kB / 7.455 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.05951/0.05951, allocations: 8.706 MB / 16.57 MB, free: 0.5781 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.254/1.254, allocations: 221.4 MB / 240.5 MB, free: 8.16 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.0008922/0.0008922, allocations: 89.64 kB / 293.5 MB, free: 5.477 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.211e-06/6.342e-06, allocations: 0 / 352.1 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.217, allocations: 52.54 MB / 404.6 MB, free: 26.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08993/0.3069, allocations: 75.34 MB / 480 MB, free: 15.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/0.3072, allocations: 65.22 kB / 480 MB, free: 15.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.0008052/0.308, allocations: 123.4 kB / 480.1 MB, free: 15.13 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.3081, allocations: 0 / 480.1 MB, free: 15.13 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.0002514/0.3083, allocations: 324.2 kB / 480.5 MB, free: 14.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.3084, allocations: 8.031 kB / 480.5 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.971e-05/0.3084, allocations: 3.906 kB / 480.5 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.3086, allocations: 164.3 kB / 480.6 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-06/0.3086, allocations: 0 / 480.6 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.3086, allocations: 0 / 480.6 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.958e-05/0.3087, allocations: 4.688 kB / 480.6 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.489e-05/0.3087, allocations: 43.22 kB / 480.7 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.3088, allocations: 0 / 480.7 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.3088, allocations: 3.906 kB / 480.7 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.3088, allocations: 4 kB / 480.7 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00015/0.3089, allocations: 127.2 kB / 480.8 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.601e-05/0.309, allocations: 26.34 kB / 480.8 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.296e-05/0.309, allocations: 17.98 kB / 480.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.002e-05/0.3091, allocations: 0 / 480.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.3091, allocations: 31.47 kB / 480.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=3): time 3.837e-06/0.3091, allocations: 7.922 kB / 480.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001396/0.3092, allocations: 50.56 kB / 480.9 MB, free: 14.19 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.657e-05/0.3093, allocations: 51.41 kB / 481 MB, free: 14.13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.449e-05/0.3093, allocations: 90.16 kB / 481.1 MB, free: 14.04 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.3094, allocations: 25.7 kB / 481.1 MB, free: 14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.873e-05/0.3094, allocations: 84.72 kB / 481.2 MB, free: 13.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.974e-05/0.3094, allocations: 16.78 kB / 481.2 MB, free: 13.9 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.384e-06/0.3095, allocations: 0 / 481.2 MB, free: 13.9 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.3096, allocations: 311.8 kB / 481.5 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.415e-05/0.3096, allocations: 4 kB / 481.5 MB, free: 13.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.149e-05/0.3096, allocations: 8.906 kB / 481.5 MB, free: 13.58 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.596e-05/0.3096, allocations: 0 / 481.5 MB, free: 13.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3096, allocations: 0 / 481.5 MB, free: 13.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.158e-05/0.3097, allocations: 46.56 kB / 481.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.3097, allocations: 8 kB / 481.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.3097, allocations: 0.5312 kB / 481.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.3098, allocations: 0 / 481.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.3099, allocations: 16.86 kB / 481.6 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.3099, allocations: 11.86 kB / 481.6 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.754e-05/0.3099, allocations: 0.9375 kB / 481.6 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.509e-06/0.3099, allocations: 0 / 481.6 MB, free: 13.49 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 6.477e-05/0.31, allocations: 109.6 kB / 481.7 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.989e-06/0.31, allocations: 0.8438 kB / 481.7 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.584e-05/0.31, allocations: 3.688 kB / 481.7 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3101, allocations: 0.7812 kB / 481.7 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3101, allocations: 0 / 481.7 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3101, allocations: 4.938 kB / 481.7 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.882e-05/0.3102, allocations: 134.2 kB / 481.8 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3102, allocations: 0 / 481.8 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.994e-05/0.3103, allocations: 8.75 kB / 481.9 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.3103, allocations: 3.984 kB / 481.9 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.772e-06/0.3103, allocations: 5.656 kB / 481.9 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.3103, allocations: 0 / 481.9 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3103, allocations: 0 / 481.9 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001266/0.3104, allocations: 87.06 kB / 482 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.209e-05/0.3105, allocations: 77.11 kB / 482 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.3105, allocations: 3.906 kB / 482 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.786e-05/0.3105, allocations: 0 / 482 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.06e-05/0.3105, allocations: 0 / 482 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.3106, allocations: 4 kB / 482 MB, free: 12.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.205e-05/0.3106, allocations: 87.8 kB / 482.1 MB, free: 12.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001833/0.3108, allocations: 4 kB / 482.1 MB, free: 12.89 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.0001166/0.3109, allocations: 95.19 kB / 482.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 6.046e-05/0.311, allocations: 16.14 kB / 482.2 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.311, allocations: 0 / 482.2 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.543e-05/0.311, allocations: 8.031 kB / 482.2 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001087/0.3111, allocations: 4 kB / 482.2 MB, free: 12.76 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001925/0.3113, allocations: 76.22 kB / 482.3 MB, free: 12.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002612/0.3116, allocations: 0.6915 MB / 483 MB, free: 11.95 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3116, allocations: 0 / 483 MB, free: 11.95 MB / 362.7 MB Notification: Performance of Templates: time 0.001738/0.3133, allocations: 268.4 kB / 483.3 MB, free: 11.69 MB / 362.7 MB make -j1 -f HanserModelica_HanserModelica.FirstSteps.Electrical1.makefile (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical1.sim & ./HanserModelica_HanserModelica.FirstSteps.Electrical1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe 2>&1)