Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical4.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.Electrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.FirstSteps.Electrical4") translateModel(HanserModelica.FirstSteps.Electrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.FirstSteps.Electrical4") [: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.004538/0.004538, allocations: 179.3 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04872/0.04872, allocations: 8.699 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.389/1.389, allocations: 221.4 MB / 240.5 MB, free: 8.215 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.001187/0.001187, allocations: 100.1 kB / 293.5 MB, free: 5.504 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.512e-06/6.623e-06, allocations: 0 / 352.1 MB, free: 10.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2457, allocations: 52.54 MB / 404.6 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09093/0.3366, allocations: 77.91 MB / 482.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001758/0.3369, allocations: 64.91 kB / 482.6 MB, free: 12.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.005319/0.3422, allocations: 1.731 MB / 484.3 MB, free: 10.9 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.3422, allocations: 5.688 kB / 484.3 MB, free: 10.9 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0003821/0.3426, allocations: 390.2 kB / 484.7 MB, free: 10.47 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.3427, allocations: 8.031 kB / 484.7 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.151e-05/0.3427, allocations: 12 kB / 484.7 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000221/0.3429, allocations: 194.8 kB / 484.9 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.3429, allocations: 4 kB / 484.9 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.181e-05/0.343, allocations: 4 kB / 484.9 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001228/0.3431, allocations: 55.94 kB / 485 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001534/0.3433, allocations: 85.67 kB / 485.1 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.3433, allocations: 0 / 485.1 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/0.3433, allocations: 0 / 485.1 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.3433, allocations: 4 kB / 485.1 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006887/0.344, allocations: 474.7 kB / 485.5 MB, free: 9.551 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.674e-05/0.3441, allocations: 33.66 kB / 485.6 MB, free: 9.512 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.244e-05/0.3441, allocations: 16.86 kB / 485.6 MB, free: 9.492 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.426e-06/0.3441, allocations: 0 / 485.6 MB, free: 9.492 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.272e-05/0.3442, allocations: 42.64 kB / 485.6 MB, free: 9.441 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.3442, allocations: 0 / 485.6 MB, free: 9.441 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001378/0.3443, allocations: 49.61 kB / 485.7 MB, free: 9.387 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.054e-05/0.3444, allocations: 51.41 kB / 485.7 MB, free: 9.324 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.759e-05/0.3444, allocations: 117.2 kB / 485.8 MB, free: 9.199 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.3445, allocations: 25.7 kB / 485.9 MB, free: 9.168 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.021e-05/0.3445, allocations: 123.6 kB / 486 MB, free: 9.043 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.255e-05/0.3446, allocations: 11.91 kB / 486 MB, free: 9.031 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.536e-06/0.3446, allocations: 0 / 486 MB, free: 9.031 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.185e-05/0.3447, allocations: 326.7 kB / 486.3 MB, free: 8.703 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.101e-05/0.3447, allocations: 7.938 kB / 486.3 MB, free: 8.695 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.258e-05/0.3447, allocations: 34.52 kB / 486.4 MB, free: 8.652 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.253e-05/0.3448, allocations: 16 kB / 486.4 MB, free: 8.637 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3448, allocations: 0 / 486.4 MB, free: 8.637 MB / 362.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001084/0.3449, allocations: 77.53 kB / 486.4 MB, free: 8.555 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.3449, allocations: 4 kB / 486.5 MB, free: 8.551 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3449, allocations: 0 / 486.5 MB, free: 8.551 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.3449, allocations: 4 kB / 486.5 MB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.345, allocations: 19.98 kB / 486.5 MB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.666e-06/0.3451, allocations: 0 / 486.5 MB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.586e-05/0.3451, allocations: 3.938 kB / 486.5 MB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.483e-06/0.3451, allocations: 7.906 kB / 486.5 MB, free: 8.516 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 6.118e-05/0.3452, allocations: 105 kB / 486.6 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.203e-05/0.3452, allocations: 7.906 kB / 486.6 MB, free: 8.398 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.401e-05/0.3453, allocations: 8 kB / 486.6 MB, free: 8.391 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3453, allocations: 0 / 486.6 MB, free: 8.391 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3453, allocations: 0 / 486.6 MB, free: 8.391 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3453, allocations: 7.922 kB / 486.6 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.3454, allocations: 158.2 kB / 486.8 MB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3454, allocations: 3.984 kB / 486.8 MB, free: 8.188 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.702e-05/0.3455, allocations: 11.91 kB / 486.8 MB, free: 8.176 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3455, allocations: 0 / 486.8 MB, free: 8.176 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.3456, allocations: 0 / 486.8 MB, free: 8.176 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3456, allocations: 4 kB / 486.8 MB, free: 8.172 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3456, allocations: 4.156 kB / 486.8 MB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001468/0.3457, allocations: 155.5 kB / 486.9 MB, free: 8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.599e-05/0.3458, allocations: 89.05 kB / 487 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.834e-05/0.3458, allocations: 0 / 487 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.284e-05/0.3459, allocations: 4 kB / 487 MB, free: 7.891 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.867e-05/0.3459, allocations: 4.062 kB / 487 MB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.3459, allocations: 3.938 kB / 487 MB, free: 7.883 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.519e-05/0.346, allocations: 99.27 kB / 487.1 MB, free: 7.785 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002535/0.3463, allocations: 27.84 kB / 487.2 MB, free: 7.758 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (inductor.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0001157/0.3464, allocations: 95.19 kB / 487.3 MB, free: 7.656 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.275e-05/0.3465, allocations: 28 kB / 487.3 MB, free: 7.629 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.3465, allocations: 0 / 487.3 MB, free: 7.629 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.802e-05/0.3465, allocations: 15.94 kB / 487.3 MB, free: 7.613 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001789/0.3467, allocations: 23.55 kB / 487.3 MB, free: 7.594 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003781/0.3471, allocations: 168.5 kB / 487.5 MB, free: 7.406 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002502/0.3474, allocations: 0.7155 MB / 488.2 MB, free: 6.668 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3474, allocations: 4 kB / 488.2 MB, free: 6.664 MB / 362.7 MB Notification: Performance of Templates: time 0.002433/0.3498, allocations: 0.5798 MB / 488.8 MB, free: 6.086 MB / 362.7 MB make -j1 -f HanserModelica_HanserModelica.FirstSteps.Electrical4.makefile (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical4.sim & ./HanserModelica_HanserModelica.FirstSteps.Electrical4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe 2>&1)