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.001604/0.001604, allocations: 108 kB / 15.6 MB, free: 132 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.382/1.382, allocations: 222.9 MB / 239.2 MB, free: 4.648 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.001378/0.001378, allocations: 192.5 kB / 289.6 MB, free: 2.359 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03441/0.03441, allocations: 8.808 MB / 348.5 MB, free: 4.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 82.94 kB / 411.2 MB, free: 42.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09352/0.09502, allocations: 51.56 MB / 462.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TablesFromFile): time 0.003424/0.09848, allocations: 2.149 MB / 464.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002009/0.1005, allocations: 1.557 MB / 466.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.1007, allocations: 3.938 kB / 466.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003345/0.101, allocations: 99.61 kB / 466.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002921/0.1013, allocations: 119.4 kB / 466.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003266/0.1017, allocations: 121.5 kB / 466.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002728/0.102, allocations: 231.1 kB / 467 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.1021, allocations: 52.03 kB / 467.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.1023, allocations: 95.64 kB / 467.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004962/0.1028, allocations: 119.6 kB / 467.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.134e-05/0.1028, allocations: 12 kB / 467.3 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001518/0.103, allocations: 71.97 kB / 467.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.328e-05/0.103, allocations: 47.78 kB / 467.4 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.602e-05/0.1031, allocations: 87.52 kB / 467.5 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000312/0.1035, allocations: 239.5 kB / 467.7 MB, free: 9.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.1035, allocations: 4 kB / 467.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1035, allocations: 0 / 467.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.1035, allocations: 0 / 467.7 MB, free: 9.266 MB / 302.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.0007487/0.1042, allocations: 0.5143 MB / 468.2 MB, free: 8.699 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.1043, allocations: 12.03 kB / 468.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.077e-05/0.1044, allocations: 46.73 kB / 468.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.792e-05/0.1044, allocations: 20.66 kB / 468.3 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002751/0.1047, allocations: 252.9 kB / 468.6 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.1047, allocations: 8.609 kB / 468.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.465e-05/0.1048, allocations: 15.94 kB / 468.6 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000272/0.1051, allocations: 149.4 kB / 468.7 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.1051, allocations: 0 / 468.7 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.1051, allocations: 4 kB / 468.7 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.1051, allocations: 7.984 kB / 468.8 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001716/0.1053, allocations: 72.67 kB / 468.8 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008632/0.1062, allocations: 0.5533 MB / 469.4 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003859/0.1066, allocations: 102.7 kB / 469.5 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.209e-05/0.1067, allocations: 40.84 kB / 469.5 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.322e-05/0.1067, allocations: 4 kB / 469.5 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002559/0.1069, allocations: 97.03 kB / 469.6 MB, free: 7.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.107, allocations: 3.938 kB / 469.6 MB, free: 7.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003677/0.1073, allocations: 145.3 kB / 469.8 MB, free: 7.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.389e-05/0.1074, allocations: 106.8 kB / 469.9 MB, free: 6.902 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002736/0.1077, allocations: 277 kB / 470.1 MB, free: 6.621 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.991e-05/0.1077, allocations: 25.7 kB / 470.2 MB, free: 6.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.07e-05/0.1078, allocations: 147.7 kB / 470.3 MB, free: 6.441 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.163e-05/0.1079, allocations: 31.56 kB / 470.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.408e-05/0.1079, allocations: 33.7 kB / 470.4 MB, free: 6.371 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.108, allocations: 330.8 kB / 470.7 MB, free: 6.039 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.405e-05/0.1081, allocations: 27.98 kB / 470.7 MB, free: 6.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.1082, allocations: 73.12 kB / 470.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.1084, allocations: 91.3 kB / 470.9 MB, free: 5.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.1084, allocations: 384 / 470.9 MB, free: 5.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002448/0.1086, allocations: 149.2 kB / 471 MB, free: 5.668 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.1087, allocations: 8 kB / 471 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1087, allocations: 0 / 471 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.1087, allocations: 3.938 kB / 471 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.1088, allocations: 27.98 kB / 471.1 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.627e-06/0.1088, allocations: 3.938 kB / 471.1 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.544e-05/0.1089, allocations: 15.84 kB / 471.1 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.2e-05/0.1089, allocations: 8 kB / 471.1 MB, free: 5.602 MB / 302.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.0001582/0.1091, allocations: 146.5 kB / 471.2 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.35e-05/0.1091, allocations: 15.81 kB / 471.3 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.531e-05/0.1092, allocations: 25.7 kB / 471.3 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.1092, allocations: 0 / 471.3 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.1092, allocations: 0 / 471.3 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.1092, allocations: 0 / 471.3 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002144/0.1095, allocations: 245.5 kB / 471.5 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.1095, allocations: 4 kB / 471.5 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.332e-05/0.1096, allocations: 16 kB / 471.5 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.706e-06/0.1096, allocations: 0 / 471.5 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.1096, allocations: 11.94 kB / 471.5 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1096, allocations: 0 / 471.5 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1096, allocations: 0 / 471.5 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003998/0.11, allocations: 192.7 kB / 471.7 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.757e-05/0.1101, allocations: 92.94 kB / 471.8 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.963e-05/0.1101, allocations: 0 / 471.8 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.244e-05/0.1102, allocations: 11.98 kB / 471.8 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.574e-05/0.1102, allocations: 8.062 kB / 471.8 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.1103, allocations: 7.984 kB / 471.9 MB, free: 4.746 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001853/0.1105, allocations: 200.5 kB / 472 MB, free: 4.551 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1105, allocations: 0 / 472 MB, free: 4.551 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002681/0.1107, allocations: 47.92 kB / 472.1 MB, free: 4.504 MB / 302.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.001426/0.1122, allocations: 1.071 MB / 473.2 MB, free: 3.586 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002325/0.1124, allocations: 87.83 kB / 473.3 MB, free: 3.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1124, allocations: 0 / 473.3 MB, free: 3.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.542e-05/0.1125, allocations: 40.17 kB / 473.3 MB, free: 3.461 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.1128, allocations: 32.42 kB / 473.3 MB, free: 3.434 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002337/0.1152, allocations: 2.078 MB / 475.4 MB, free: 1.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.1155, allocations: 0.7358 MB / 476.1 MB, free: 496 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.027e-05/0.1156, allocations: 17.55 kB / 476.2 MB, free: 480 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.486e-05/0.1156, allocations: 59.41 kB / 476.2 MB, free: 420 kB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1157, allocations: 4.188 kB / 476.2 MB, free: 416 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02296/0.1386, allocations: 4.691 MB / 480.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.614/7.752, allocations: 10.42 kB / 480.9 MB, free: 11.79 MB / 318.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)