Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.TablesFromFile.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.TablesFromFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.TablesFromFile") translateModel(HanserModelica.Electrical.TablesFromFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.TablesFromFile") [: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.00259/0.00259, allocations: 185.2 kB / 7.453 MB, free: 2.238 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03792/0.03792, allocations: 8.7 MB / 16.57 MB, free: 396 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.226/1.226, allocations: 221.4 MB / 240.5 MB, free: 8.195 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.0008882/0.0008881, allocations: 112.6 kB / 293.5 MB, free: 5.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.959e-06/4.979e-06, allocations: 0 / 352.1 MB, free: 10.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2086/0.2086, allocations: 52.54 MB / 404.6 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09349/0.3021, allocations: 81.73 MB / 486.4 MB, free: 8.879 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001907/0.3023, allocations: 76.89 kB / 486.4 MB, free: 8.805 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.02529/0.3276, allocations: 8.599 MB / 495 MB, free: 216 kB / 362.7 MB Notification: Performance of Transformations before backend: time 2.139e-05/0.3277, allocations: 4 kB / 495 MB, free: 212 kB / 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.0009059/0.3286, allocations: 0.4941 MB / 495.5 MB, free: 15.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.3287, allocations: 12.03 kB / 495.5 MB, free: 15.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.031e-05/0.3288, allocations: 23.72 kB / 495.6 MB, free: 15.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004595/0.3292, allocations: 255.7 kB / 495.8 MB, free: 15.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.3293, allocations: 4 kB / 495.8 MB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.154e-05/0.3293, allocations: 8 kB / 495.8 MB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001797/0.3295, allocations: 60.45 kB / 495.9 MB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002383/0.3297, allocations: 129.2 kB / 496 MB, free: 15.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.3298, allocations: 0 / 496 MB, free: 15.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.378e-05/0.3298, allocations: 7.906 kB / 496 MB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.3298, allocations: 4 kB / 496 MB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009824/0.3308, allocations: 0.5229 MB / 496.5 MB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003316/0.3311, allocations: 94.67 kB / 496.6 MB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.787e-05/0.3312, allocations: 32.86 kB / 496.7 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.3312, allocations: 0 / 496.7 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001224/0.3314, allocations: 97.03 kB / 496.8 MB, free: 14.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.122e-06/0.3314, allocations: 0 / 496.8 MB, free: 14.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002484/0.3316, allocations: 101.6 kB / 496.9 MB, free: 14.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.3317, allocations: 106.8 kB / 497 MB, free: 14.06 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002611/0.332, allocations: 229.6 kB / 497.2 MB, free: 13.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.332, allocations: 25.7 kB / 497.2 MB, free: 13.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.661e-05/0.3321, allocations: 124.1 kB / 497.3 MB, free: 13.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.853e-05/0.3321, allocations: 31.64 kB / 497.4 MB, free: 13.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-06/0.3321, allocations: 4 kB / 497.4 MB, free: 13.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.3323, allocations: 334.7 kB / 497.7 MB, free: 13.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.155e-05/0.3323, allocations: 24 kB / 497.7 MB, free: 13.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.157e-05/0.3324, allocations: 61.09 kB / 497.8 MB, free: 13.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.812e-05/0.3325, allocations: 32.02 kB / 497.8 MB, free: 13.17 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3325, allocations: 4 kB / 497.8 MB, free: 13.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000218/0.3327, allocations: 121.4 kB / 497.9 MB, free: 13.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.3328, allocations: 4 kB / 497.9 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.3328, allocations: 0 / 497.9 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.3328, allocations: 4 kB / 497.9 MB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.3329, allocations: 27.92 kB / 498 MB, free: 13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.625e-06/0.3329, allocations: 3.938 kB / 498 MB, free: 13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.333, allocations: 27.92 kB / 498 MB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.3331, allocations: 4 kB / 498 MB, free: 12.97 MB / 378.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 8.245e-05/0.3332, allocations: 112.9 kB / 498.1 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.444e-05/0.3332, allocations: 15.81 kB / 498.1 MB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002287/0.3334, allocations: 115 kB / 498.2 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.3334, allocations: 4 kB / 498.2 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3335, allocations: 0 / 498.2 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3335, allocations: 3.984 kB / 498.2 MB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002077/0.3337, allocations: 218 kB / 498.5 MB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3337, allocations: 0 / 498.5 MB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.971e-05/0.3338, allocations: 23.98 kB / 498.5 MB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.3338, allocations: 0 / 498.5 MB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.3338, allocations: 0 / 498.5 MB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3338, allocations: 0 / 498.5 MB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.3338, allocations: 0 / 498.5 MB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002861/0.3341, allocations: 172.8 kB / 498.7 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.405e-05/0.3342, allocations: 109 kB / 498.8 MB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.928e-05/0.3343, allocations: 3.938 kB / 498.8 MB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.433e-05/0.3344, allocations: 15.83 kB / 498.8 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.016e-05/0.3344, allocations: 7.984 kB / 498.8 MB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.3344, allocations: 4 kB / 498.8 MB, free: 12.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001633/0.3346, allocations: 188.6 kB / 499 MB, free: 11.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003055/0.3349, allocations: 59.89 kB / 499 MB, free: 11.86 MB / 378.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.0007098/0.3356, allocations: 343.9 kB / 499.4 MB, free: 11.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001664/0.3358, allocations: 71.92 kB / 499.4 MB, free: 11.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3358, allocations: 192 / 499.4 MB, free: 11.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.894e-05/0.3359, allocations: 43.94 kB / 499.5 MB, free: 11.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002681/0.3362, allocations: 27.91 kB / 499.5 MB, free: 11.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006772/0.3369, allocations: 300.5 kB / 499.8 MB, free: 11.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003884/0.3373, allocations: 0.7626 MB / 0.4888 GB, free: 10.37 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3373, allocations: 3.938 kB / 0.4888 GB, free: 10.36 MB / 378.7 MB Notification: Performance of Templates: time 0.005514/0.3428, allocations: 2.237 MB / 0.491 GB, free: 8.148 MB / 378.7 MB make -j1 -f HanserModelica_HanserModelica.Electrical.TablesFromFile.makefile (rm -f HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe >> ../files/HanserModelica_HanserModelica.Electrical.TablesFromFile.sim & ./HanserModelica_HanserModelica.Electrical.TablesFromFile -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe 2>&1)