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.001081/0.001081, allocations: 108 kB / 15.61 MB, free: 152 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.346/1.346, allocations: 222.9 MB / 239.3 MB, free: 4.613 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.001972/0.001972, allocations: 199.5 kB / 289.6 MB, free: 2.332 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03472/0.03472, allocations: 8.804 MB / 348.5 MB, free: 4.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001535, allocations: 80.09 kB / 411.2 MB, free: 42.1 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09866/0.1002, allocations: 51.56 MB / 462.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Tables): time 0.003817/0.1041, allocations: 2.149 MB / 464.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00171/0.1058, allocations: 0.9586 MB / 465.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.106, allocations: 4 kB / 465.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004048/0.1064, allocations: 103.5 kB / 466 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002867/0.1067, allocations: 99.5 kB / 466.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003331/0.1071, allocations: 138.7 kB / 466.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002595/0.1073, allocations: 211.2 kB / 466.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.1075, allocations: 51.91 kB / 466.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.1076, allocations: 87.69 kB / 466.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.1078, allocations: 115.5 kB / 466.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.725e-05/0.1078, allocations: 12 kB / 466.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.1079, allocations: 51.98 kB / 466.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.295e-05/0.108, allocations: 47.78 kB / 466.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.425e-05/0.1081, allocations: 91.45 kB / 466.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002646/0.1084, allocations: 223.5 kB / 467.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1084, allocations: 4 kB / 467.1 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1084, allocations: 0 / 467.1 MB, free: 9.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.1084, allocations: 0 / 467.1 MB, free: 9.926 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.0007305/0.1091, allocations: 0.5049 MB / 467.6 MB, free: 9.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.1092, allocations: 8.031 kB / 467.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.639e-05/0.1093, allocations: 46.73 kB / 467.6 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.976e-05/0.1093, allocations: 24.66 kB / 467.7 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.1096, allocations: 245 kB / 467.9 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.1097, allocations: 8.609 kB / 467.9 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.347e-05/0.1097, allocations: 15.94 kB / 467.9 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/0.11, allocations: 119.5 kB / 468 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.11, allocations: 0 / 468 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.11, allocations: 7.984 kB / 468 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.11, allocations: 4 kB / 468 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001917/0.1102, allocations: 76.61 kB / 468.1 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000837/0.1111, allocations: 0.5535 MB / 468.7 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003821/0.1115, allocations: 106.7 kB / 468.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.331e-05/0.1116, allocations: 36.78 kB / 468.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.1116, allocations: 4 kB / 468.8 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002926/0.1119, allocations: 101.1 kB / 468.9 MB, free: 7.891 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.243e-06/0.1119, allocations: 0 / 468.9 MB, free: 7.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003774/0.1123, allocations: 141.4 kB / 469.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.715e-05/0.1124, allocations: 77.48 kB / 469.1 MB, free: 7.652 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002637/0.1127, allocations: 264.2 kB / 469.4 MB, free: 7.383 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.1127, allocations: 33.7 kB / 469.4 MB, free: 7.344 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.1128, allocations: 151.6 kB / 469.6 MB, free: 7.191 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.734e-05/0.1128, allocations: 39.47 kB / 469.6 MB, free: 7.152 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.827e-05/0.1129, allocations: 25.72 kB / 469.6 MB, free: 7.121 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.113, allocations: 338.8 kB / 470 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.967e-05/0.1131, allocations: 23.94 kB / 470 MB, free: 6.758 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.513e-05/0.1132, allocations: 68.27 kB / 470.1 MB, free: 6.676 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.1134, allocations: 87.36 kB / 470.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1134, allocations: 0 / 470.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002301/0.1136, allocations: 141.4 kB / 470.3 MB, free: 6.434 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.1136, allocations: 8.125 kB / 470.3 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1136, allocations: 0 / 470.3 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.1137, allocations: 4 kB / 470.3 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.1138, allocations: 27.92 kB / 470.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.1138, allocations: 0 / 470.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.162e-05/0.1139, allocations: 19.91 kB / 470.3 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.387e-06/0.1139, allocations: 4 kB / 470.3 MB, free: 6.371 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.0001294/0.114, allocations: 146.3 kB / 470.5 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.019e-05/0.1141, allocations: 15.81 kB / 470.5 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.467e-05/0.1141, allocations: 29.39 kB / 470.5 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1142, allocations: 0 / 470.5 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1142, allocations: 3.938 kB / 470.5 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.1142, allocations: 0 / 470.5 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.1144, allocations: 241.4 kB / 470.8 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1144, allocations: 0 / 470.8 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.065e-05/0.1145, allocations: 15.98 kB / 470.8 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.1145, allocations: 4 kB / 470.8 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.1145, allocations: 4 kB / 470.8 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1145, allocations: 0 / 470.8 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.1145, allocations: 4 kB / 470.8 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003238/0.1148, allocations: 180.8 kB / 471 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.129e-05/0.1149, allocations: 92.94 kB / 471.1 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.797e-05/0.1149, allocations: 4 kB / 471.1 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001342/0.1151, allocations: 8 kB / 471.1 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.507e-05/0.1151, allocations: 7.984 kB / 471.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.1151, allocations: 7.938 kB / 471.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001583/0.1153, allocations: 201.7 kB / 471.3 MB, free: 5.328 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1153, allocations: 3.938 kB / 471.3 MB, free: 5.324 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00025/0.1156, allocations: 43.84 kB / 471.3 MB, free: 5.281 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.001414/0.117, allocations: 1.029 MB / 472.4 MB, free: 4.383 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002368/0.1172, allocations: 79.91 kB / 472.4 MB, free: 4.305 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1172, allocations: 0 / 472.4 MB, free: 4.305 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.83e-05/0.1173, allocations: 39.92 kB / 472.5 MB, free: 4.266 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002885/0.1176, allocations: 32.48 kB / 472.5 MB, free: 4.238 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/0.1198, allocations: 2.054 MB / 474.6 MB, free: 2.082 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002581/0.1201, allocations: 0.728 MB / 475.3 MB, free: 1.328 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.827e-05/0.1202, allocations: 25.53 kB / 475.3 MB, free: 1.305 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.339e-05/0.1203, allocations: 59.41 kB / 475.4 MB, free: 1.246 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1203, allocations: 0 / 475.4 MB, free: 1.246 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02155/0.1418, allocations: 4.306 MB / 479.7 MB, free: 13.02 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.659/7.801, allocations: 14.97 kB / 479.7 MB, free: 13 MB / 318.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)