Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.Tables.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.Tables,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Tables",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.Tables,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Tables",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.001622/0.001621, allocations: 112.5 kB / 15.73 MB, free: 76 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.534/1.534, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.002471/0.002471, 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.05625/0.05625, allocations: 8.799 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002294/0.002295, allocations: 75.88 kB / 463.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1034, allocations: 51.56 MB / 0.5029 GB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Tables): time 0.003572/0.1071, allocations: 2.157 MB / 0.505 GB, free: 7.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.1087, allocations: 0.9547 MB / 0.5059 GB, free: 6.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.1089, allocations: 4 kB / 0.5059 GB, free: 6.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003942/0.1093, allocations: 103.5 kB / 0.506 GB, free: 6.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003073/0.1096, allocations: 103.4 kB / 0.5061 GB, free: 6.676 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003838/0.11, allocations: 131.2 kB / 0.5063 GB, free: 6.551 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003074/0.1103, allocations: 223.2 kB / 0.5065 GB, free: 6.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.1105, allocations: 49.66 kB / 0.5065 GB, free: 6.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001486/0.1107, allocations: 95.61 kB / 0.5066 GB, free: 6.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.1109, allocations: 99.66 kB / 0.5067 GB, free: 6.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.676e-05/0.1109, allocations: 12 kB / 0.5067 GB, free: 6.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.111, allocations: 51.98 kB / 0.5068 GB, free: 6.031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.354e-05/0.1111, allocations: 55.77 kB / 0.5068 GB, free: 5.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.1113, allocations: 83.48 kB / 0.5069 GB, free: 5.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003869/0.1116, allocations: 223 kB / 0.5071 GB, free: 5.676 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.21e-05/0.1117, allocations: 3.984 kB / 0.5071 GB, free: 5.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1117, allocations: 0 / 0.5071 GB, free: 5.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.1117, allocations: 0 / 0.5071 GB, free: 5.672 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.0009053/0.1126, allocations: 0.5101 MB / 0.5076 GB, free: 5.109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.1126, allocations: 8.031 kB / 0.5076 GB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.537e-05/0.1127, allocations: 46.73 kB / 0.5077 GB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.784e-05/0.1128, allocations: 24.8 kB / 0.5077 GB, free: 5.023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004077/0.1132, allocations: 253 kB / 0.5079 GB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.1132, allocations: 8.609 kB / 0.5079 GB, free: 4.727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.538e-05/0.1133, allocations: 15.94 kB / 0.508 GB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002795/0.1135, allocations: 127.4 kB / 0.5081 GB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.1136, allocations: 0 / 0.5081 GB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.1136, allocations: 4 kB / 0.5081 GB, free: 4.578 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.1136, allocations: 4 kB / 0.5081 GB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.1138, allocations: 76.61 kB / 0.5082 GB, free: 4.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008742/0.1147, allocations: 0.5381 MB / 0.5087 GB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003973/0.1151, allocations: 106.7 kB / 0.5088 GB, free: 3.785 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.536e-05/0.1152, allocations: 44.83 kB / 0.5088 GB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.1152, allocations: 3.984 kB / 0.5088 GB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002292/0.1155, allocations: 105 kB / 0.5089 GB, free: 3.613 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.1155, allocations: 0 / 0.5089 GB, free: 3.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004139/0.1159, allocations: 145.5 kB / 0.5091 GB, free: 3.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.712e-05/0.116, allocations: 81.11 kB / 0.5091 GB, free: 3.367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002919/0.1163, allocations: 260.2 kB / 0.5094 GB, free: 3.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.1163, allocations: 25.7 kB / 0.5094 GB, free: 3.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.1164, allocations: 143.9 kB / 0.5096 GB, free: 2.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.277e-05/0.1165, allocations: 31.73 kB / 0.5096 GB, free: 2.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.806e-05/0.1166, allocations: 29.72 kB / 0.5096 GB, free: 2.859 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1167, allocations: 334.8 kB / 0.5099 GB, free: 2.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.966e-05/0.1168, allocations: 35.98 kB / 0.51 GB, free: 2.488 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.1169, allocations: 66.05 kB / 0.51 GB, free: 2.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001684/0.1171, allocations: 87.36 kB / 0.5101 GB, free: 2.312 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1171, allocations: 4.031 kB / 0.5101 GB, free: 2.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.00026/0.1174, allocations: 141.3 kB / 0.5102 GB, free: 2.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.1174, allocations: 4 kB / 0.5103 GB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.1174, allocations: 4 kB / 0.5103 GB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.1174, allocations: 0 / 0.5103 GB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.1175, allocations: 23.98 kB / 0.5103 GB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.1175, allocations: 4 kB / 0.5103 GB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.022e-05/0.1176, allocations: 16.31 kB / 0.5103 GB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.1177, allocations: 8.094 kB / 0.5103 GB, free: 2.105 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.0001337/0.1178, allocations: 149.6 kB / 0.5105 GB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.221e-05/0.1178, allocations: 15.91 kB / 0.5105 GB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.813e-05/0.1179, allocations: 25.34 kB / 0.5105 GB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.1179, allocations: 0 / 0.5105 GB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.1179, allocations: 4 kB / 0.5105 GB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.1179, allocations: 3.984 kB / 0.5105 GB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002376/0.1182, allocations: 241.4 kB / 0.5107 GB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.1182, allocations: 3.984 kB / 0.5107 GB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.331e-05/0.1183, allocations: 16 kB / 0.5107 GB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1183, allocations: 0 / 0.5107 GB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.1183, allocations: 0 / 0.5107 GB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.1183, allocations: 4 kB / 0.5108 GB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.1183, allocations: 11.92 kB / 0.5108 GB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003899/0.1187, allocations: 184.9 kB / 0.5109 GB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.257e-05/0.1188, allocations: 89.05 kB / 0.511 GB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.1188, allocations: 4 kB / 0.511 GB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.795e-05/0.1189, allocations: 12.05 kB / 0.511 GB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.025e-05/0.119, allocations: 7.938 kB / 0.511 GB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.794e-05/0.119, allocations: 8 kB / 0.5111 GB, free: 1.234 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002047/0.1192, allocations: 197.6 kB / 0.5112 GB, free: 1.043 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1192, allocations: 0 / 0.5112 GB, free: 1.043 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00027/0.1195, allocations: 39.89 kB / 0.5113 GB, free: 1.004 MB / 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.0022/0.1217, allocations: 1.02 MB / 0.5123 GB, free: 116 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002528/0.122, allocations: 83.84 kB / 0.5124 GB, free: 32 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.122, allocations: 0 / 0.5124 GB, free: 32 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001178/0.1221, allocations: 39.97 kB / 0.5124 GB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.1224, allocations: 47.48 kB / 0.5124 GB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002599/0.1251, allocations: 2.064 MB / 0.5145 GB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003554/0.1254, allocations: 0.7319 MB / 0.5152 GB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.17e-05/0.1255, allocations: 17.55 kB / 0.5152 GB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.1256, allocations: 59.41 kB / 0.5152 GB, free: 12.96 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1256, allocations: 0 / 0.5152 GB, free: 12.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02759/0.1532, allocations: 4.397 MB / 0.5195 GB, free: 8.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.253/8.406, allocations: 15.83 kB / 0.5196 GB, free: 8.637 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Electrical.Tables.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.Tables.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.Tables.pipe >> ../files/HanserModelica_HanserModelica.Electrical.Tables.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Electrical.Tables_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_Tables.fmu > HanserModelica_HanserModelica.Electrical.Tables.pipe 2>&1)