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: "" <> buildModelFMU(HanserModelica.Electrical.Tables,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Tables",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.Tables,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Tables",fmuType="me",version="2.0",platforms={"static"}) [: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.004751/0.004751, allocations: 184.6 kB / 7.463 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.08453/0.08453, allocations: 8.702 MB / 16.58 MB, free: 440 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.213/2.213, allocations: 221.4 MB / 240.5 MB, free: 8.105 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.001572/0.001572, allocations: 90.81 kB / 293.5 MB, free: 5.426 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.215/0.2167, allocations: 58.68 MB / 352.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4822/0.6989, allocations: 52.53 MB / 404.7 MB, free: 26.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1727/0.8717, allocations: 81.38 MB / 486.1 MB, free: 9.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003186/0.8722, allocations: 67.97 kB / 486.2 MB, free: 9.094 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.02242/0.8946, allocations: 5.148 MB / 491.3 MB, free: 3.922 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.969e-05/0.8947, allocations: 8 kB / 491.3 MB, free: 3.914 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.8949, allocations: 23.7 kB / 491.3 MB, free: 3.891 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006801/0.8956, allocations: 247.8 kB / 491.6 MB, free: 3.605 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.475e-05/0.8956, allocations: 8 kB / 491.6 MB, free: 3.598 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.516e-05/0.8957, allocations: 11.98 kB / 491.6 MB, free: 3.586 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002632/0.896, allocations: 64.47 kB / 491.7 MB, free: 3.523 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002971/0.8963, allocations: 103.2 kB / 491.8 MB, free: 3.418 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.8963, allocations: 0 / 491.8 MB, free: 3.418 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.396e-05/0.8963, allocations: 4 kB / 491.8 MB, free: 3.414 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.8964, allocations: 3.984 kB / 491.8 MB, free: 3.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001294/0.8977, allocations: 0.515 MB / 492.3 MB, free: 2.844 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004547/0.8981, allocations: 102.7 kB / 492.4 MB, free: 2.734 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.8983, allocations: 32.84 kB / 492.4 MB, free: 2.699 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.8983, allocations: 4 kB / 492.4 MB, free: 2.695 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002129/0.8985, allocations: 85.11 kB / 492.5 MB, free: 2.594 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 2.945e-06/0.8985, allocations: 0 / 492.5 MB, free: 2.594 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003956/0.8989, allocations: 105.6 kB / 492.6 MB, free: 2.484 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/0.8991, allocations: 81.2 kB / 492.7 MB, free: 2.387 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004103/0.8995, allocations: 217.9 kB / 492.9 MB, free: 2.164 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.8996, allocations: 25.7 kB / 492.9 MB, free: 2.133 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.8997, allocations: 124.1 kB / 493 MB, free: 2.008 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.956e-05/0.8998, allocations: 31.55 kB / 493.1 MB, free: 1.977 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.367e-06/0.8998, allocations: 0 / 493.1 MB, free: 1.977 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002332/0.9, allocations: 330.8 kB / 493.4 MB, free: 1.645 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.664e-05/0.9001, allocations: 24 kB / 493.4 MB, free: 1.621 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.9003, allocations: 67.75 kB / 493.5 MB, free: 1.543 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000113/0.9004, allocations: 35.83 kB / 493.5 MB, free: 1.508 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.9004, allocations: 0 / 493.5 MB, free: 1.508 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003962/0.9008, allocations: 117.4 kB / 493.6 MB, free: 1.387 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.9009, allocations: 4.125 kB / 493.6 MB, free: 1.383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.9009, allocations: 8 kB / 493.7 MB, free: 1.375 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.9009, allocations: 0 / 493.7 MB, free: 1.375 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.9011, allocations: 31.92 kB / 493.7 MB, free: 1.344 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.9011, allocations: 4 kB / 493.7 MB, free: 1.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.9013, allocations: 19.83 kB / 493.7 MB, free: 1.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.9013, allocations: 4 kB / 493.7 MB, free: 1.316 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 0.0001687/0.9015, allocations: 105 kB / 493.8 MB, free: 1.207 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.9e-05/0.9016, allocations: 23.72 kB / 493.8 MB, free: 1.184 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003632/0.902, allocations: 123 kB / 494 MB, free: 1.059 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.902, allocations: 4 kB / 494 MB, free: 1.055 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.902, allocations: 0 / 494 MB, free: 1.055 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.902, allocations: 3.984 kB / 494 MB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003564/0.9024, allocations: 214 kB / 494.2 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.9024, allocations: 0 / 494.2 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.9025, allocations: 16 kB / 494.2 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.9026, allocations: 0 / 494.2 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/0.9026, allocations: 0 / 494.2 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.9026, allocations: 4 kB / 494.2 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.9026, allocations: 4 kB / 494.2 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004409/0.9031, allocations: 176.7 kB / 494.4 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007352/0.9038, allocations: 0.5756 MB / 494.9 MB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001516/0.904, allocations: 108.8 kB / 495.1 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.529e-05/0.9041, allocations: 4.125 kB / 495.1 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.9042, allocations: 4 kB / 495.1 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.213e-05/0.9043, allocations: 7.984 kB / 495.1 MB, free: 15.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.9043, allocations: 4 kB / 495.1 MB, free: 15.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003374/0.9047, allocations: 176.6 kB / 495.2 MB, free: 15.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001538/0.9062, allocations: 47.84 kB / 495.3 MB, free: 15.62 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.001243/0.9075, allocations: 308.7 kB / 495.6 MB, free: 15.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003625/0.9079, allocations: 75.92 kB / 495.7 MB, free: 15.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.9079, allocations: 0 / 495.7 MB, free: 15.33 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.908, allocations: 32 kB / 495.7 MB, free: 15.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005283/0.9086, allocations: 32.78 kB / 495.7 MB, free: 15.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/0.9098, allocations: 313 kB / 496 MB, free: 14.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007669/0.9106, allocations: 0.7547 MB / 496.8 MB, free: 14.16 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.9106, allocations: 0 / 496.8 MB, free: 14.16 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_Tables_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_Tables.fmu > HanserModelica_HanserModelica.Electrical.Tables.pipe 2>&1)