Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical5.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.Electrical5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.FirstSteps.Electrical5") translateModel(HanserModelica.FirstSteps.Electrical5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.FirstSteps.Electrical5") [: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.002469/0.002469, allocations: 183 kB / 7.456 MB, free: 2.52 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0388/0.0388, allocations: 8.701 MB / 16.57 MB, free: 452 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.247/1.247, 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.0009782/0.0009782, allocations: 94.69 kB / 293.5 MB, free: 7.434 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.444e-06/7.554e-06, allocations: 4 kB / 352.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2231/0.2231, allocations: 52.53 MB / 404.6 MB, free: 27.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09365/0.3168, allocations: 77.95 MB / 482.6 MB, free: 12.94 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002017/0.317, allocations: 67.95 kB / 482.6 MB, free: 12.88 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.005737/0.3228, allocations: 1.84 MB / 484.5 MB, free: 11.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.3228, allocations: 4 kB / 484.5 MB, free: 11.05 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.0004132/0.3232, allocations: 391 kB / 484.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.3233, allocations: 8.031 kB / 484.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.409e-05/0.3233, allocations: 11.81 kB / 484.9 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002219/0.3236, allocations: 195 kB / 485.1 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.3236, allocations: 4 kB / 485.1 MB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.386e-05/0.3236, allocations: 4 kB / 485.1 MB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001317/0.3238, allocations: 52 kB / 485.1 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001575/0.3239, allocations: 85.61 kB / 485.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.324, allocations: 0 / 485.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.514e-05/0.324, allocations: 4 kB / 485.2 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.324, allocations: 4 kB / 485.2 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007452/0.3247, allocations: 474.7 kB / 485.7 MB, free: 9.703 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.867e-05/0.3248, allocations: 25.72 kB / 485.7 MB, free: 9.672 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.549e-05/0.3249, allocations: 16.86 kB / 485.7 MB, free: 9.652 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.017e-06/0.3249, allocations: 3.938 kB / 485.7 MB, free: 9.648 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.3249, allocations: 38.56 kB / 485.8 MB, free: 9.602 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.3249, allocations: 0 / 485.8 MB, free: 9.602 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001628/0.3251, allocations: 53.69 kB / 485.8 MB, free: 9.543 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.702e-05/0.3251, allocations: 51.41 kB / 485.9 MB, free: 9.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.509e-05/0.3252, allocations: 117.2 kB / 486 MB, free: 9.355 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.3252, allocations: 29.64 kB / 486 MB, free: 9.32 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.925e-05/0.3253, allocations: 119.6 kB / 486.1 MB, free: 9.199 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.052e-05/0.3253, allocations: 11.89 kB / 486.1 MB, free: 9.188 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-06/0.3253, allocations: 0 / 486.1 MB, free: 9.188 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.3254, allocations: 326.8 kB / 486.5 MB, free: 8.859 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.092e-05/0.3255, allocations: 8 kB / 486.5 MB, free: 8.852 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.525e-05/0.3255, allocations: 30.56 kB / 486.5 MB, free: 8.812 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.365e-05/0.3256, allocations: 15.94 kB / 486.5 MB, free: 8.797 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.3256, allocations: 0 / 486.5 MB, free: 8.797 MB / 362.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001127/0.3257, allocations: 73.59 kB / 486.6 MB, free: 8.719 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.3257, allocations: 8.062 kB / 486.6 MB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3257, allocations: 0 / 486.6 MB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.3257, allocations: 4 kB / 486.6 MB, free: 8.707 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.3258, allocations: 23.92 kB / 486.6 MB, free: 8.684 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.3259, allocations: 0 / 486.6 MB, free: 8.684 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.523e-05/0.3259, allocations: 7.938 kB / 486.6 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.184e-06/0.3259, allocations: 3.906 kB / 486.6 MB, free: 8.672 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 7.345e-05/0.326, allocations: 105 kB / 486.7 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.09e-05/0.326, allocations: 3.906 kB / 486.7 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.969e-05/0.3261, allocations: 16 kB / 486.7 MB, free: 8.543 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.3261, allocations: 4.031 kB / 486.7 MB, free: 8.539 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3261, allocations: 0 / 486.7 MB, free: 8.539 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3261, allocations: 0 / 486.7 MB, free: 8.539 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/0.3263, allocations: 158.2 kB / 486.9 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3263, allocations: 0 / 486.9 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.977e-05/0.3264, allocations: 19.83 kB / 486.9 MB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.3264, allocations: 0 / 486.9 MB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-06/0.3264, allocations: 0 / 486.9 MB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-06/0.3264, allocations: 4 kB / 486.9 MB, free: 8.324 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3264, allocations: 4 kB / 486.9 MB, free: 8.32 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001839/0.3266, allocations: 155.5 kB / 487.1 MB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.16e-05/0.3266, allocations: 85.02 kB / 487.2 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.3267, allocations: 48 / 487.2 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.956e-05/0.3268, allocations: 7.984 kB / 487.2 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.091e-05/0.3268, allocations: 0 / 487.2 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.692e-06/0.3268, allocations: 0 / 487.2 MB, free: 8.043 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.837e-05/0.3269, allocations: 105.4 kB / 487.3 MB, free: 7.941 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002521/0.3271, allocations: 31.83 kB / 487.3 MB, free: 7.91 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.0001036/0.3272, allocations: 91.91 kB / 487.4 MB, free: 7.812 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.713e-05/0.3273, allocations: 31.94 kB / 487.4 MB, free: 7.781 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3273, allocations: 0 / 487.4 MB, free: 7.781 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.725e-05/0.3273, allocations: 15.94 kB / 487.4 MB, free: 7.766 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001827/0.3275, allocations: 4 kB / 487.4 MB, free: 7.762 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003956/0.3279, allocations: 184.5 kB / 487.6 MB, free: 7.559 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002967/0.3283, allocations: 0.7149 MB / 488.3 MB, free: 6.82 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3283, allocations: 0 / 488.3 MB, free: 6.82 MB / 362.7 MB Notification: Performance of Templates: time 0.00248/0.3307, allocations: 0.5941 MB / 488.9 MB, free: 6.242 MB / 362.7 MB make -j1 -f HanserModelica_HanserModelica.FirstSteps.Electrical5.makefile (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical5.sim & ./HanserModelica_HanserModelica.FirstSteps.Electrical5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe 2>&1)