Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.Tables.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.Electrical.Tables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.Tables") translateModel(HanserModelica.Electrical.Tables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.Tables") [: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.003321/0.003321, allocations: 180.1 kB / 7.454 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.0566/0.0566, allocations: 8.705 MB / 16.57 MB, free: 432 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.408/1.408, allocations: 221.4 MB / 240.5 MB, free: 8.203 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.0009174/0.0009174, allocations: 98.03 kB / 293.5 MB, free: 5.504 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.673e-06/6.713e-06, allocations: 4 kB / 352.1 MB, free: 10.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1982, allocations: 52.54 MB / 404.6 MB, free: 26.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09807/0.2963, allocations: 81.38 MB / 486 MB, free: 9.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.2966, allocations: 67.97 kB / 486.1 MB, free: 9.203 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.01355/0.3102, allocations: 4.671 MB / 490.7 MB, free: 4.555 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.3102, allocations: 4 kB / 490.7 MB, free: 4.551 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005821/0.3108, allocations: 481.9 kB / 491.2 MB, free: 4.031 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.3109, allocations: 8.031 kB / 491.2 MB, free: 4.023 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.31e-05/0.3109, allocations: 23.72 kB / 491.2 MB, free: 4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003527/0.3113, allocations: 251.8 kB / 491.5 MB, free: 3.711 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.3113, allocations: 4 kB / 491.5 MB, free: 3.707 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.972e-05/0.3114, allocations: 4 kB / 491.5 MB, free: 3.703 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001524/0.3115, allocations: 72.39 kB / 491.6 MB, free: 3.633 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001872/0.3117, allocations: 103.3 kB / 491.7 MB, free: 3.527 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.3117, allocations: 0 / 491.7 MB, free: 3.527 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.3118, allocations: 4 kB / 491.7 MB, free: 3.523 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.3118, allocations: 0 / 491.7 MB, free: 3.523 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007684/0.3125, allocations: 0.5189 MB / 492.2 MB, free: 2.953 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002873/0.3128, allocations: 94.67 kB / 492.3 MB, free: 2.852 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.696e-05/0.3129, allocations: 36.86 kB / 492.3 MB, free: 2.812 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.344e-05/0.3129, allocations: 0 / 492.3 MB, free: 2.812 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001265/0.3131, allocations: 101.2 kB / 492.4 MB, free: 2.695 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.3131, allocations: 0 / 492.4 MB, free: 2.695 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002467/0.3133, allocations: 97.48 kB / 492.5 MB, free: 2.594 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.3134, allocations: 77.11 kB / 492.6 MB, free: 2.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000222/0.3136, allocations: 217.9 kB / 492.8 MB, free: 2.277 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.3136, allocations: 25.7 kB / 492.8 MB, free: 2.246 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.964e-05/0.3137, allocations: 124.1 kB / 492.9 MB, free: 2.121 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.541e-05/0.3138, allocations: 35.5 kB / 493 MB, free: 2.086 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.28e-06/0.3138, allocations: 0 / 493 MB, free: 2.086 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.3139, allocations: 330.8 kB / 493.3 MB, free: 1.754 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.094e-05/0.314, allocations: 28 kB / 493.3 MB, free: 1.727 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.543e-05/0.314, allocations: 56.28 kB / 493.4 MB, free: 1.656 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.843e-05/0.3141, allocations: 39.86 kB / 493.4 MB, free: 1.617 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3141, allocations: 0 / 493.4 MB, free: 1.617 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001918/0.3143, allocations: 121.4 kB / 493.5 MB, free: 1.492 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.3143, allocations: 4 kB / 493.5 MB, free: 1.488 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.3143, allocations: 4 kB / 493.6 MB, free: 1.484 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.3144, allocations: 0 / 493.6 MB, free: 1.484 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.3145, allocations: 27.92 kB / 493.6 MB, free: 1.457 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.3145, allocations: 4 kB / 493.6 MB, free: 1.453 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.924e-05/0.3146, allocations: 15.94 kB / 493.6 MB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.3146, allocations: 4 kB / 493.6 MB, free: 1.434 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.table.nextTimeEvent,table.nextTimeEvent,$PRE.table.nextTimeEventScaled,table.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.842e-05/0.3147, allocations: 105 kB / 493.7 MB, free: 1.324 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.041e-05/0.3147, allocations: 19.72 kB / 493.7 MB, free: 1.305 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002163/0.315, allocations: 131 kB / 493.9 MB, free: 1.172 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.315, allocations: 0 / 493.9 MB, free: 1.172 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.315, allocations: 3.984 kB / 493.9 MB, free: 1.168 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.315, allocations: 0 / 493.9 MB, free: 1.168 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.3152, allocations: 218 kB / 494.1 MB, free: 0.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3152, allocations: 4 kB / 494.1 MB, free: 0.9141 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.564e-05/0.3153, allocations: 12 kB / 494.1 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3153, allocations: 0 / 494.1 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.3153, allocations: 3.984 kB / 494.1 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.3153, allocations: 4 kB / 494.1 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3153, allocations: 96 / 494.1 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002618/0.3156, allocations: 176.6 kB / 494.3 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.568e-05/0.3157, allocations: 108.9 kB / 494.4 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.37e-05/0.3157, allocations: 0 / 494.4 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.568e-05/0.3158, allocations: 11.98 kB / 494.4 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.2e-05/0.3159, allocations: 0 / 494.4 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.3159, allocations: 8 kB / 494.4 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001414/0.316, allocations: 172.6 kB / 494.6 MB, free: 400 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002555/0.3163, allocations: 51.84 kB / 494.6 MB, free: 348 kB / 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: 3 ($whenCondition1,table.nextTimeEvent,table.nextTimeEventScaled) * Number of discrete states: 2 (table.nextTimeEvent,table.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005971/0.3169, allocations: 308.4 kB / 494.9 MB, free: 124 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001526/0.317, allocations: 75.92 kB / 495 MB, free: 48 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3171, allocations: 3.938 kB / 495 MB, free: 44 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.833e-05/0.3171, allocations: 39.92 kB / 495 MB, free: 4 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/0.3174, allocations: 25.61 kB / 495.1 MB, free: 15.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006182/0.318, allocations: 305.1 kB / 495.3 MB, free: 15.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/0.3184, allocations: 0.7547 MB / 496.1 MB, free: 14.88 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3184, allocations: 0 / 496.1 MB, free: 14.88 MB / 378.7 MB Notification: Performance of Templates: time 0.004713/0.3231, allocations: 1.969 MB / 498.1 MB, free: 12.94 MB / 378.7 MB make -j1 -f HanserModelica_HanserModelica.Electrical.Tables.makefile (rm -f HanserModelica_HanserModelica.Electrical.Tables.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.Tables.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.Tables.pipe >> ../files/HanserModelica_HanserModelica.Electrical.Tables.sim & ./HanserModelica_HanserModelica.Electrical.Tables -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Electrical.Tables.pipe 2>&1)