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/ModelicaServices 4.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009315/0.009315, allocations: 99.69 kB / 15.73 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 222.9 MB / 239.4 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 192.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03439/0.03439, allocations: 8.792 MB / 348.7 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 71.88 kB / 463.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1196, allocations: 51.57 MB / 0.5029 GB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TablesFromFile): time 0.003896/0.1235, allocations: 2.176 MB / 0.505 GB, free: 7.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002582/0.1261, allocations: 1.549 MB / 0.5065 GB, free: 6.262 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002065/0.1264, allocations: 3.938 kB / 0.5066 GB, free: 6.258 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004274/0.1268, allocations: 99.61 kB / 0.5066 GB, free: 6.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004225/0.1273, allocations: 119.4 kB / 0.5068 GB, free: 6.043 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.1277, allocations: 131.7 kB / 0.5069 GB, free: 5.914 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003045/0.128, allocations: 223.1 kB / 0.5071 GB, free: 5.695 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.1282, allocations: 57.64 kB / 0.5072 GB, free: 5.641 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.1284, allocations: 91.64 kB / 0.5072 GB, free: 5.551 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005493/0.1289, allocations: 111.6 kB / 0.5073 GB, free: 5.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.481e-05/0.129, allocations: 16 kB / 0.5074 GB, free: 5.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000175/0.1292, allocations: 67.97 kB / 0.5074 GB, free: 5.359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.931e-05/0.1292, allocations: 51.77 kB / 0.5075 GB, free: 5.309 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.855e-05/0.1293, allocations: 79.55 kB / 0.5076 GB, free: 5.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003917/0.1297, allocations: 250.9 kB / 0.5078 GB, free: 4.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1298, allocations: 0 / 0.5078 GB, free: 4.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1298, allocations: 0 / 0.5078 GB, free: 4.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.1298, allocations: 4 kB / 0.5078 GB, free: 4.98 MB / 350.1 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.0008577/0.1307, allocations: 0.5217 MB / 0.5083 GB, free: 4.406 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.1307, allocations: 12.03 kB / 0.5083 GB, free: 4.395 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.495e-05/0.1308, allocations: 46.69 kB / 0.5084 GB, free: 4.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.359e-05/0.1308, allocations: 20.8 kB / 0.5084 GB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000387/0.1312, allocations: 245.2 kB / 0.5086 GB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.1313, allocations: 8.609 kB / 0.5086 GB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.712e-05/0.1313, allocations: 19.94 kB / 0.5086 GB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003026/0.1316, allocations: 141.4 kB / 0.5088 GB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.1316, allocations: 0 / 0.5088 GB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.1317, allocations: 8 kB / 0.5088 GB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.1317, allocations: 0 / 0.5088 GB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/0.1319, allocations: 78.3 kB / 0.5089 GB, free: 3.781 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008381/0.1327, allocations: 0.5533 MB / 0.5094 GB, free: 3.164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003731/0.1331, allocations: 106.7 kB / 0.5095 GB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.541e-05/0.1332, allocations: 36.84 kB / 0.5095 GB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.1332, allocations: 7.984 kB / 0.5095 GB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002014/0.1334, allocations: 105 kB / 0.5096 GB, free: 2.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.743e-06/0.1334, allocations: 0 / 0.5096 GB, free: 2.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003836/0.1338, allocations: 141.5 kB / 0.5098 GB, free: 2.738 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.087e-05/0.1339, allocations: 110.8 kB / 0.5099 GB, free: 2.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002826/0.1342, allocations: 269 kB / 0.5101 GB, free: 2.336 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.1342, allocations: 33.7 kB / 0.5102 GB, free: 2.297 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.1343, allocations: 140 kB / 0.5103 GB, free: 2.156 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.677e-05/0.1344, allocations: 31.73 kB / 0.5103 GB, free: 2.125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.467e-05/0.1344, allocations: 33.67 kB / 0.5104 GB, free: 2.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1346, allocations: 334.8 kB / 0.5107 GB, free: 1.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.911e-05/0.1347, allocations: 31.98 kB / 0.5107 GB, free: 1.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001089/0.1348, allocations: 75.05 kB / 0.5108 GB, free: 1.629 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000157/0.1349, allocations: 91.3 kB / 0.5109 GB, free: 1.527 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.135, allocations: 0 / 0.5109 GB, free: 1.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002527/0.1352, allocations: 133.5 kB / 0.511 GB, free: 1.391 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.1352, allocations: 13.69 kB / 0.511 GB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.371e-06/0.1353, allocations: 0 / 0.511 GB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.1353, allocations: 0 / 0.511 GB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.1354, allocations: 23.98 kB / 0.511 GB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.1354, allocations: 7.938 kB / 0.511 GB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.1355, allocations: 27.88 kB / 0.5111 GB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.1355, allocations: 4 kB / 0.5111 GB, free: 1.316 MB / 350.1 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 ($PRE.table.nextTimeEvent,$whenCondition1,table.nextTimeEventScaled,$PRE.table.nextTimeEventScaled,table.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001311/0.1357, allocations: 149.7 kB / 0.5112 GB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.512e-05/0.1357, allocations: 23.86 kB / 0.5112 GB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.75e-05/0.1358, allocations: 21.72 kB / 0.5113 GB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1358, allocations: 0 / 0.5113 GB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1358, allocations: 0 / 0.5113 GB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.1358, allocations: 4.359 kB / 0.5113 GB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002124/0.136, allocations: 241.5 kB / 0.5115 GB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.136, allocations: 0 / 0.5115 GB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.683e-05/0.1361, allocations: 19.94 kB / 0.5115 GB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1361, allocations: 3.938 kB / 0.5115 GB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.1362, allocations: 3.984 kB / 0.5115 GB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1362, allocations: 0 / 0.5115 GB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1362, allocations: 4 kB / 0.5115 GB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003488/0.1365, allocations: 188.8 kB / 0.5117 GB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.488e-05/0.1366, allocations: 96.98 kB / 0.5118 GB, free: 484 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.291e-05/0.1366, allocations: 3.984 kB / 0.5118 GB, free: 480 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.574e-05/0.1367, allocations: 4 kB / 0.5118 GB, free: 476 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.807e-05/0.1368, allocations: 11.98 kB / 0.5118 GB, free: 464 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.1368, allocations: 8.062 kB / 0.5118 GB, free: 456 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001937/0.137, allocations: 204.4 kB / 0.512 GB, free: 248 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.137, allocations: 0 / 0.512 GB, free: 248 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002757/0.1373, allocations: 47.89 kB / 0.5121 GB, free: 200 kB / 350.1 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.nextTimeEventScaled,table.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001655/0.139, allocations: 1.064 MB / 0.5131 GB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002403/0.1392, allocations: 87.78 kB / 0.5132 GB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1392, allocations: 0 / 0.5132 GB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.949e-05/0.1393, allocations: 31.98 kB / 0.5132 GB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.1396, allocations: 47.88 kB / 0.5133 GB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/0.1422, allocations: 2.082 MB / 0.5153 GB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.1426, allocations: 0.7358 MB / 0.516 GB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.1427, allocations: 21.53 kB / 0.516 GB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.1428, allocations: 63.41 kB / 0.5161 GB, free: 12.09 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1428, allocations: 0 / 0.5161 GB, free: 12.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02801/0.1708, allocations: 4.794 MB / 0.5208 GB, free: 7.348 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.016/8.186, allocations: 11.77 kB / 0.5208 GB, free: 7.336 MB / 366.1 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Electrical.TablesFromFile_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Electrical_TablesFromFile.fmu > HanserModelica_HanserModelica.Electrical.TablesFromFile.pipe 2>&1)