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.006557/0.006558, allocations: 98.25 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.474/1.474, allocations: 222.9 MB / 239.4 MB, free: 4.434 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.001412/0.001411, allocations: 195 kB / 289.7 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03559/0.03559, allocations: 8.793 MB / 348.7 MB, free: 4.555 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002864/0.002864, allocations: 79.88 kB / 463.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1358, allocations: 51.56 MB / 0.5029 GB, free: 9.922 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TablesFromFile): time 0.003763/0.1396, allocations: 2.172 MB / 0.505 GB, free: 7.738 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002446/0.142, allocations: 1.553 MB / 0.5066 GB, free: 6.176 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001838/0.1422, allocations: 4 kB / 0.5066 GB, free: 6.172 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004304/0.1427, allocations: 103.5 kB / 0.5067 GB, free: 6.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004127/0.1431, allocations: 115.4 kB / 0.5068 GB, free: 5.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004374/0.1436, allocations: 134.3 kB / 0.5069 GB, free: 5.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003518/0.1439, allocations: 219.2 kB / 0.5071 GB, free: 5.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.1441, allocations: 53.66 kB / 0.5072 GB, free: 5.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.1443, allocations: 99.55 kB / 0.5072 GB, free: 5.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006416/0.145, allocations: 111.6 kB / 0.5074 GB, free: 5.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.925e-05/0.145, allocations: 12 kB / 0.5074 GB, free: 5.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002407/0.1453, allocations: 71.97 kB / 0.5074 GB, free: 5.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.1454, allocations: 51.83 kB / 0.5075 GB, free: 5.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.1456, allocations: 87.47 kB / 0.5076 GB, free: 5.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005694/0.1462, allocations: 251 kB / 0.5078 GB, free: 4.891 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1462, allocations: 0 / 0.5078 GB, free: 4.891 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1462, allocations: 0 / 0.5078 GB, free: 4.891 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.587e-05/0.1462, allocations: 0 / 0.5078 GB, free: 4.891 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.001045/0.1473, allocations: 0.5139 MB / 0.5083 GB, free: 4.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.1473, allocations: 8.031 kB / 0.5083 GB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.597e-05/0.1474, allocations: 50.73 kB / 0.5084 GB, free: 4.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.273e-05/0.1475, allocations: 24.8 kB / 0.5084 GB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004724/0.148, allocations: 245.1 kB / 0.5086 GB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.818e-05/0.148, allocations: 12.61 kB / 0.5086 GB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.126e-05/0.1481, allocations: 15.94 kB / 0.5086 GB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003823/0.1485, allocations: 145.4 kB / 0.5088 GB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.1485, allocations: 0 / 0.5088 GB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.266e-05/0.1485, allocations: 7.938 kB / 0.5088 GB, free: 3.766 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.1486, allocations: 8 kB / 0.5088 GB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.1488, allocations: 68.67 kB / 0.5089 GB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.1499, allocations: 0.5534 MB / 0.5094 GB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004976/0.1504, allocations: 110.7 kB / 0.5095 GB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.1506, allocations: 36.84 kB / 0.5095 GB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.1506, allocations: 0 / 0.5095 GB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.1509, allocations: 97.03 kB / 0.5096 GB, free: 2.805 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.1509, allocations: 0 / 0.5096 GB, free: 2.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004991/0.1514, allocations: 149.5 kB / 0.5098 GB, free: 2.652 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.903e-05/0.1515, allocations: 102.8 kB / 0.5099 GB, free: 2.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003924/0.1519, allocations: 280.9 kB / 0.5101 GB, free: 2.246 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.1519, allocations: 29.7 kB / 0.5102 GB, free: 2.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.1521, allocations: 136 kB / 0.5103 GB, free: 2.074 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.251e-05/0.1521, allocations: 35.75 kB / 0.5103 GB, free: 2.039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.462e-05/0.1522, allocations: 33.66 kB / 0.5104 GB, free: 2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1524, allocations: 330.8 kB / 0.5107 GB, free: 1.668 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.996e-05/0.1525, allocations: 31.98 kB / 0.5107 GB, free: 1.637 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.1526, allocations: 69.12 kB / 0.5108 GB, free: 1.551 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002435/0.1529, allocations: 91.39 kB / 0.5109 GB, free: 1.449 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.1529, allocations: 4 kB / 0.5109 GB, free: 1.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003657/0.1533, allocations: 141.4 kB / 0.511 GB, free: 1.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.1533, allocations: 4 kB / 0.511 GB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1533, allocations: 4 kB / 0.511 GB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.1534, allocations: 7.984 kB / 0.511 GB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.1535, allocations: 24.36 kB / 0.511 GB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.1535, allocations: 0 / 0.511 GB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/0.1537, allocations: 19.98 kB / 0.5111 GB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.1537, allocations: 8 kB / 0.5111 GB, free: 1.234 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.0001603/0.1539, allocations: 151.4 kB / 0.5112 GB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.146e-05/0.1539, allocations: 19.86 kB / 0.5112 GB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.102e-05/0.154, allocations: 25.7 kB / 0.5113 GB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.154, allocations: 0 / 0.5113 GB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.154, allocations: 0 / 0.5113 GB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.1541, allocations: 4 kB / 0.5113 GB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002814/0.1543, allocations: 245.5 kB / 0.5115 GB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1544, allocations: 4 kB / 0.5115 GB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.1545, allocations: 12 kB / 0.5115 GB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1545, allocations: 0 / 0.5115 GB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.883e-05/0.1545, allocations: 8 kB / 0.5115 GB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1545, allocations: 0 / 0.5115 GB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1545, allocations: 0 / 0.5115 GB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004483/0.155, allocations: 188.8 kB / 0.5117 GB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.139e-05/0.1551, allocations: 89.05 kB / 0.5118 GB, free: 412 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.871e-05/0.1551, allocations: 8.062 kB / 0.5118 GB, free: 404 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.1552, allocations: 11.98 kB / 0.5118 GB, free: 392 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.039e-05/0.1553, allocations: 7.938 kB / 0.5118 GB, free: 384 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.369e-05/0.1553, allocations: 3.984 kB / 0.5118 GB, free: 380 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002503/0.1556, allocations: 208.4 kB / 0.512 GB, free: 168 kB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1556, allocations: 0 / 0.512 GB, free: 168 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004368/0.156, allocations: 55.81 kB / 0.5121 GB, free: 112 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.002112/0.1582, allocations: 1.061 MB / 0.5131 GB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002846/0.1585, allocations: 83.89 kB / 0.5132 GB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1585, allocations: 0 / 0.5132 GB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.1586, allocations: 43.92 kB / 0.5132 GB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004127/0.159, allocations: 36.09 kB / 0.5133 GB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002614/0.1617, allocations: 2.086 MB / 0.5153 GB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004462/0.1621, allocations: 0.7319 MB / 0.516 GB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.758e-05/0.1622, allocations: 25.53 kB / 0.516 GB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.26e-05/0.1623, allocations: 55.42 kB / 0.5161 GB, free: 12.01 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1623, allocations: 0 / 0.5161 GB, free: 12.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02689/0.1892, allocations: 4.791 MB / 0.5208 GB, free: 7.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.06/8.25, allocations: 18.8 kB / 0.5208 GB, free: 7.254 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)