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: "" <> buildModelFMU(HanserModelica.Electrical.TablesFromFile,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TablesFromFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.TablesFromFile,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TablesFromFile",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.005431/0.005431, allocations: 182.6 kB / 7.458 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.07776/0.07776, allocations: 8.705 MB / 16.57 MB, free: 492 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.324/2.324, 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.001612/0.001612, allocations: 101.9 kB / 293.5 MB, free: 5.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2293/0.2309, allocations: 58.67 MB / 352.2 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4928/0.7238, allocations: 52.54 MB / 404.7 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1674/0.8913, allocations: 81.74 MB / 486.4 MB, free: 8.871 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003238/0.8917, allocations: 72.78 kB / 486.5 MB, free: 8.801 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.03187/0.9236, allocations: 9.111 MB / 495.6 MB, free: 15.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.93e-05/0.9237, allocations: 8 kB / 495.6 MB, free: 15.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.9239, allocations: 23.72 kB / 495.7 MB, free: 15.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007239/0.9246, allocations: 255.7 kB / 495.9 MB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.317e-05/0.9247, allocations: 4 kB / 495.9 MB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.027e-05/0.9247, allocations: 8 kB / 495.9 MB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002377/0.925, allocations: 64.45 kB / 496 MB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002974/0.9253, allocations: 129.2 kB / 496.1 MB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.9253, allocations: 0 / 496.1 MB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/0.9253, allocations: 7.906 kB / 496.1 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.9254, allocations: 0 / 496.1 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.9266, allocations: 0.5228 MB / 496.6 MB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003793/0.927, allocations: 90.73 kB / 496.7 MB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.807e-05/0.9271, allocations: 36.86 kB / 496.8 MB, free: 14.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.9271, allocations: 0 / 496.8 MB, free: 14.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001481/0.9273, allocations: 93.23 kB / 496.9 MB, free: 14.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.9273, allocations: 0 / 496.9 MB, free: 14.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002959/0.9276, allocations: 105.4 kB / 497 MB, free: 14.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.347e-05/0.9277, allocations: 106.8 kB / 497.1 MB, free: 14.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003169/0.928, allocations: 233.7 kB / 497.3 MB, free: 13.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/0.928, allocations: 33.64 kB / 497.3 MB, free: 13.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.09e-05/0.9281, allocations: 120.1 kB / 497.4 MB, free: 13.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.144e-05/0.9282, allocations: 27.64 kB / 497.5 MB, free: 13.63 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.583e-06/0.9282, allocations: 0 / 497.5 MB, free: 13.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.9283, allocations: 330.7 kB / 497.8 MB, free: 13.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.214e-05/0.9284, allocations: 24 kB / 497.8 MB, free: 13.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.9285, allocations: 65.14 kB / 497.9 MB, free: 13.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001118/0.9286, allocations: 35.98 kB / 497.9 MB, free: 13.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.9286, allocations: 0 / 497.9 MB, free: 13.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002507/0.9289, allocations: 121.4 kB / 498 MB, free: 13.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.9289, allocations: 4 kB / 498 MB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.929, allocations: 0 / 498 MB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.929, allocations: 8.125 kB / 498 MB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.9292, allocations: 23.98 kB / 498.1 MB, free: 13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.9292, allocations: 3.938 kB / 498.1 MB, free: 13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/0.9294, allocations: 15.84 kB / 498.1 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.9294, allocations: 8 kB / 498.1 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 0.0001279/0.9295, allocations: 116.8 kB / 498.2 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.243e-05/0.9296, allocations: 15.81 kB / 498.2 MB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003171/0.9299, allocations: 111.1 kB / 498.3 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.9299, allocations: 4 kB / 498.3 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.93, allocations: 4 kB / 498.3 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.93, allocations: 0 / 498.3 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003989/0.9304, allocations: 222 kB / 498.6 MB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.9304, allocations: 0 / 498.6 MB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.9306, allocations: 19.94 kB / 498.6 MB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.9306, allocations: 0 / 498.6 MB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.9306, allocations: 0 / 498.6 MB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.9306, allocations: 3.984 kB / 498.6 MB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/0.9306, allocations: 4 kB / 498.6 MB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004373/0.9311, allocations: 173.1 kB / 498.8 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007358/0.9318, allocations: 0.5832 MB / 499.3 MB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.932, allocations: 104.8 kB / 499.4 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.586e-05/0.9321, allocations: 3.938 kB / 499.4 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.9322, allocations: 16.2 kB / 499.5 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.044e-05/0.9323, allocations: 7.938 kB / 499.5 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.9323, allocations: 7.906 kB / 499.5 MB, free: 11.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002876/0.9326, allocations: 184.6 kB / 499.7 MB, free: 11.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001283/0.9339, allocations: 59.92 kB / 499.7 MB, free: 11.25 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.001116/0.935, allocations: 351.5 kB / 0.4883 GB, free: 11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002657/0.9353, allocations: 79.86 kB / 0.4884 GB, free: 10.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.9353, allocations: 0 / 0.4884 GB, free: 10.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.48e-05/0.9354, allocations: 35.94 kB / 0.4884 GB, free: 10.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.9358, allocations: 36.72 kB / 0.4885 GB, free: 10.85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008836/0.9367, allocations: 296.5 kB / 0.4888 GB, free: 10.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004746/0.9372, allocations: 0.7665 MB / 0.4895 GB, free: 9.75 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.9372, allocations: 0 / 0.4895 GB, free: 9.75 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_TablesFromFile_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_TablesFromFile.fmu > HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe 2>&1)