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.00595/0.005955, allocations: 100.8 kB / 15.73 MB, free: 6.012 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.372/1.372, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.002133/0.002133, allocations: 188.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03543/0.03543, allocations: 8.801 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001862, allocations: 79.89 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1154, allocations: 51.56 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TablesFromFile): time 0.004176/0.1197, allocations: 2.167 MB / 0.505 GB, free: 7.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002491/0.1222, allocations: 1.549 MB / 0.5065 GB, free: 6.277 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001982/0.1224, allocations: 7.938 kB / 0.5065 GB, free: 6.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004024/0.1228, allocations: 99.55 kB / 0.5066 GB, free: 6.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004071/0.1233, allocations: 115.4 kB / 0.5068 GB, free: 6.059 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004325/0.1237, allocations: 135.6 kB / 0.5069 GB, free: 5.926 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003354/0.1241, allocations: 211.2 kB / 0.5071 GB, free: 5.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.1243, allocations: 53.66 kB / 0.5071 GB, free: 5.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000175/0.1244, allocations: 99.56 kB / 0.5072 GB, free: 5.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005762/0.125, allocations: 111.6 kB / 0.5073 GB, free: 5.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.472e-05/0.1251, allocations: 16 kB / 0.5074 GB, free: 5.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001672/0.1252, allocations: 67.97 kB / 0.5074 GB, free: 5.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.673e-05/0.1253, allocations: 43.84 kB / 0.5075 GB, free: 5.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.1254, allocations: 95.45 kB / 0.5075 GB, free: 5.242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003833/0.1258, allocations: 243.4 kB / 0.5078 GB, free: 5.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1259, allocations: 0 / 0.5078 GB, free: 5.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1259, allocations: 4 kB / 0.5078 GB, free: 5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.1259, allocations: 0 / 0.5078 GB, free: 5 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.0007783/0.1267, allocations: 0.5143 MB / 0.5083 GB, free: 4.434 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.1267, allocations: 8.031 kB / 0.5083 GB, free: 4.426 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.596e-05/0.1268, allocations: 46.73 kB / 0.5083 GB, free: 4.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.244e-05/0.1268, allocations: 24.66 kB / 0.5084 GB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003841/0.1272, allocations: 249 kB / 0.5086 GB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.1273, allocations: 12.61 kB / 0.5086 GB, free: 4.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.997e-05/0.1273, allocations: 19.92 kB / 0.5086 GB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002897/0.1276, allocations: 141.4 kB / 0.5088 GB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1276, allocations: 0 / 0.5088 GB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.116e-05/0.1276, allocations: 8 kB / 0.5088 GB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.1277, allocations: 11.94 kB / 0.5088 GB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001581/0.1278, allocations: 66.31 kB / 0.5088 GB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008389/0.1287, allocations: 0.5494 MB / 0.5094 GB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000375/0.1291, allocations: 106.7 kB / 0.5095 GB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.098e-05/0.1291, allocations: 36.84 kB / 0.5095 GB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.1292, allocations: 4 kB / 0.5095 GB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002085/0.1294, allocations: 101 kB / 0.5096 GB, free: 2.914 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.1294, allocations: 0 / 0.5096 GB, free: 2.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000357/0.1298, allocations: 145.3 kB / 0.5098 GB, free: 2.766 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.006e-05/0.1299, allocations: 106.8 kB / 0.5099 GB, free: 2.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000271/0.1301, allocations: 276.9 kB / 0.5101 GB, free: 2.359 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.1302, allocations: 29.7 kB / 0.5102 GB, free: 2.324 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.1303, allocations: 143.8 kB / 0.5103 GB, free: 2.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.01e-05/0.1303, allocations: 31.55 kB / 0.5103 GB, free: 2.148 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.261e-05/0.1304, allocations: 29.72 kB / 0.5104 GB, free: 2.113 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.1305, allocations: 334.8 kB / 0.5107 GB, free: 1.777 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.087e-05/0.1306, allocations: 24 kB / 0.5107 GB, free: 1.754 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.665e-05/0.1307, allocations: 77.12 kB / 0.5108 GB, free: 1.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000166/0.1309, allocations: 91.3 kB / 0.5109 GB, free: 1.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.1309, allocations: 0 / 0.5109 GB, free: 1.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002385/0.1311, allocations: 141.3 kB / 0.511 GB, free: 1.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.1311, allocations: 8 kB / 0.511 GB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.1311, allocations: 0 / 0.511 GB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.1312, allocations: 0 / 0.511 GB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.1313, allocations: 27.98 kB / 0.511 GB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.1313, allocations: 0 / 0.511 GB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.1314, allocations: 19.84 kB / 0.511 GB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.1314, allocations: 4 kB / 0.511 GB, free: 1.355 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.0001291/0.1315, allocations: 155.3 kB / 0.5112 GB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.297e-05/0.1316, allocations: 19.72 kB / 0.5112 GB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.298e-05/0.1316, allocations: 25.7 kB / 0.5112 GB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1317, allocations: 0 / 0.5112 GB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.1317, allocations: 0 / 0.5112 GB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1317, allocations: 0 / 0.5112 GB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.1319, allocations: 249.5 kB / 0.5115 GB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1319, allocations: 0 / 0.5115 GB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.08e-05/0.132, allocations: 12 kB / 0.5115 GB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.132, allocations: 0 / 0.5115 GB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.132, allocations: 0 / 0.5115 GB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.132, allocations: 4 kB / 0.5115 GB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.132, allocations: 3.984 kB / 0.5115 GB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003393/0.1324, allocations: 193.1 kB / 0.5117 GB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.61e-05/0.1324, allocations: 96.86 kB / 0.5118 GB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.267e-05/0.1325, allocations: 7.938 kB / 0.5118 GB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.43e-05/0.1326, allocations: 7.984 kB / 0.5118 GB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.106e-05/0.1326, allocations: 16 kB / 0.5118 GB, free: 492 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.1326, allocations: 7.984 kB / 0.5118 GB, free: 484 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001816/0.1328, allocations: 200.5 kB / 0.512 GB, free: 280 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1328, allocations: 0 / 0.512 GB, free: 280 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002793/0.1331, allocations: 43.92 kB / 0.512 GB, free: 236 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.0015/0.1346, allocations: 1.062 MB / 0.5131 GB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002363/0.1349, allocations: 79.91 kB / 0.5132 GB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.1349, allocations: 0 / 0.5132 GB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.794e-05/0.135, allocations: 44.05 kB / 0.5132 GB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.1353, allocations: 51.11 kB / 0.5132 GB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002549/0.1379, allocations: 2.066 MB / 0.5153 GB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.1382, allocations: 0.7358 MB / 0.516 GB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.78e-05/0.1383, allocations: 21.53 kB / 0.516 GB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.1384, allocations: 55.42 kB / 0.5161 GB, free: 12.14 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1384, allocations: 0 / 0.5161 GB, free: 12.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0262/0.1646, allocations: 4.854 MB / 0.5208 GB, free: 7.336 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.88/8.045, allocations: 11.83 kB / 0.5208 GB, free: 7.324 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 & /home/hudson/saved_omc/OMSimulator/install/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)