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.001342/0.001342, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001442/0.001442, allocations: 188.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03627/0.03627, allocations: 8.799 MB / 348.6 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002315/0.002315, allocations: 91.86 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1046, allocations: 51.55 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TablesFromFile): time 0.003539/0.1082, allocations: 2.167 MB / 0.505 GB, free: 7.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002198/0.1104, allocations: 1.561 MB / 0.5065 GB, free: 6.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.707e-05/0.1105, allocations: 4 kB / 0.5065 GB, free: 6.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003314/0.1109, allocations: 107.5 kB / 0.5066 GB, free: 6.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002836/0.1111, allocations: 111.4 kB / 0.5068 GB, free: 6.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000332/0.1115, allocations: 139.1 kB / 0.5069 GB, free: 5.918 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002729/0.1118, allocations: 219.2 kB / 0.5071 GB, free: 5.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.1119, allocations: 49.66 kB / 0.5071 GB, free: 5.656 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.1121, allocations: 95.62 kB / 0.5072 GB, free: 5.562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003584/0.1124, allocations: 111.6 kB / 0.5073 GB, free: 5.453 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.256e-05/0.1125, allocations: 12 kB / 0.5073 GB, free: 5.441 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001494/0.1126, allocations: 75.89 kB / 0.5074 GB, free: 5.367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.043e-05/0.1127, allocations: 43.84 kB / 0.5075 GB, free: 5.324 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.256e-05/0.1128, allocations: 79.55 kB / 0.5075 GB, free: 5.246 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003417/0.1131, allocations: 250.9 kB / 0.5078 GB, free: 5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1132, allocations: 0 / 0.5078 GB, free: 5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1132, allocations: 0 / 0.5078 GB, free: 5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1132, allocations: 4 kB / 0.5078 GB, free: 4.996 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.0007637/0.1139, allocations: 0.5217 MB / 0.5083 GB, free: 4.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.114, allocations: 12.03 kB / 0.5083 GB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.398e-05/0.114, allocations: 50.72 kB / 0.5084 GB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.258e-05/0.1141, allocations: 24.8 kB / 0.5084 GB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003408/0.1145, allocations: 245.1 kB / 0.5086 GB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.1145, allocations: 12.61 kB / 0.5086 GB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.843e-05/0.1145, allocations: 15.94 kB / 0.5086 GB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002787/0.1148, allocations: 138.6 kB / 0.5088 GB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.1148, allocations: 0 / 0.5088 GB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.17e-05/0.1148, allocations: 11.98 kB / 0.5088 GB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.1149, allocations: 7.938 kB / 0.5088 GB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001652/0.115, allocations: 68.67 kB / 0.5089 GB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008133/0.1159, allocations: 0.5533 MB / 0.5094 GB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003489/0.1162, allocations: 102.7 kB / 0.5095 GB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.503e-05/0.1163, allocations: 40.84 kB / 0.5095 GB, free: 3.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.1163, allocations: 7.938 kB / 0.5095 GB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001921/0.1165, allocations: 101 kB / 0.5096 GB, free: 2.895 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.1165, allocations: 0 / 0.5096 GB, free: 2.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003584/0.1169, allocations: 141.5 kB / 0.5098 GB, free: 2.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.964e-05/0.117, allocations: 106.8 kB / 0.5099 GB, free: 2.621 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/0.1173, allocations: 269 kB / 0.5101 GB, free: 2.352 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.1173, allocations: 33.7 kB / 0.5102 GB, free: 2.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.1174, allocations: 143.9 kB / 0.5103 GB, free: 2.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.76e-05/0.1175, allocations: 31.73 kB / 0.5103 GB, free: 2.137 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.625e-05/0.1175, allocations: 37.66 kB / 0.5104 GB, free: 2.094 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1177, allocations: 330.8 kB / 0.5107 GB, free: 1.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.673e-05/0.1178, allocations: 35.92 kB / 0.5107 GB, free: 1.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001112/0.1179, allocations: 71.11 kB / 0.5108 GB, free: 1.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.1181, allocations: 91.36 kB / 0.5109 GB, free: 1.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1181, allocations: 0 / 0.5109 GB, free: 1.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000253/0.1183, allocations: 141.5 kB / 0.511 GB, free: 1.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.1184, allocations: 8 kB / 0.511 GB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.1184, allocations: 0 / 0.511 GB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.1184, allocations: 0 / 0.511 GB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.1185, allocations: 31.94 kB / 0.511 GB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.1185, allocations: 3.984 kB / 0.511 GB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.276e-05/0.1186, allocations: 15.89 kB / 0.5111 GB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.858e-06/0.1186, allocations: 4 kB / 0.5111 GB, free: 1.332 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.0001329/0.1188, allocations: 145.8 kB / 0.5112 GB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.451e-05/0.1188, allocations: 19.86 kB / 0.5112 GB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.253e-05/0.1189, allocations: 25.7 kB / 0.5112 GB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.1189, allocations: 0 / 0.5112 GB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1189, allocations: 0 / 0.5112 GB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1189, allocations: 0 / 0.5112 GB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002266/0.1191, allocations: 241.5 kB / 0.5115 GB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.1191, allocations: 384 / 0.5115 GB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.08e-05/0.1192, allocations: 23.91 kB / 0.5115 GB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.1192, allocations: 0 / 0.5115 GB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/0.1192, allocations: 0 / 0.5115 GB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.1192, allocations: 7.938 kB / 0.5115 GB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1192, allocations: 0 / 0.5115 GB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003488/0.1196, allocations: 192.8 kB / 0.5117 GB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.989e-05/0.1197, allocations: 96.97 kB / 0.5118 GB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.741e-05/0.1197, allocations: 0 / 0.5118 GB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.868e-05/0.1198, allocations: 4 kB / 0.5118 GB, free: 500 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.092e-05/0.1198, allocations: 15.92 kB / 0.5118 GB, free: 484 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.1199, allocations: 8.062 kB / 0.5118 GB, free: 476 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002006/0.1201, allocations: 200.5 kB / 0.512 GB, free: 272 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1201, allocations: 4 kB / 0.512 GB, free: 268 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002485/0.1203, allocations: 47.89 kB / 0.5121 GB, free: 220 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.002052/0.1224, allocations: 1.059 MB / 0.5131 GB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000225/0.1226, allocations: 83.78 kB / 0.5132 GB, free: 15.22 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.1226, allocations: 0 / 0.5132 GB, free: 15.22 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.303e-05/0.1227, allocations: 39.92 kB / 0.5132 GB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002945/0.123, allocations: 55.39 kB / 0.5133 GB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002534/0.1256, allocations: 2.085 MB / 0.5153 GB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.126, allocations: 0.7319 MB / 0.516 GB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.519e-05/0.1261, allocations: 17.55 kB / 0.516 GB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.653e-05/0.1262, allocations: 63.41 kB / 0.5161 GB, free: 12.1 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1262, allocations: 0 / 0.5161 GB, free: 12.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03001/0.1562, allocations: 4.788 MB / 0.5208 GB, free: 7.359 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.77/7.926, allocations: 15.77 kB / 0.5208 GB, free: 7.344 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)