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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0008257/0.0008256, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.379/1.379, allocations: 223.2 MB / 239 MB, free: 5.461 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.001296/0.001296, allocations: 188.4 kB / 290.3 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03415/0.03415, allocations: 8.781 MB / 350.2 MB, free: 4.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003798/0.00038, allocations: 9.766 kB / 413.3 MB, free: 43.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0946/0.095, allocations: 52.57 MB / 465.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.TablesFromFile): time 0.002667/0.09771, allocations: 1.806 MB / 467.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002266/0.1, allocations: 1.464 MB / 469.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002249/0.1003, allocations: 0 / 469.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000382/0.1007, allocations: 87.75 kB / 469.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003502/0.101, allocations: 99.55 kB / 469.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000432/0.1015, allocations: 110.2 kB / 469.4 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003485/0.1018, allocations: 191.3 kB / 469.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001677/0.102, allocations: 37.95 kB / 469.6 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000192/0.1022, allocations: 83.62 kB / 469.7 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005206/0.1027, allocations: 95.64 kB / 469.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.935e-05/0.1028, allocations: 8 kB / 469.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001721/0.103, allocations: 51.98 kB / 469.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.753e-05/0.103, allocations: 39.83 kB / 469.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.592e-05/0.1031, allocations: 61.58 kB / 470 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.1034, allocations: 179.6 kB / 470.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1034, allocations: 0 / 470.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1034, allocations: 0 / 470.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.1034, allocations: 0 / 470.1 MB, free: 9.062 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.0007697/0.1042, allocations: 0.4908 MB / 470.6 MB, free: 8.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.1042, allocations: 8.031 kB / 470.6 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.724e-05/0.1043, allocations: 42.5 kB / 470.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.188e-05/0.1044, allocations: 35.66 kB / 470.7 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000308/0.1047, allocations: 235.9 kB / 470.9 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.1047, allocations: 12.23 kB / 470.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.796e-05/0.1048, allocations: 8 kB / 471 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002843/0.105, allocations: 141.4 kB / 471.1 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.1051, allocations: 4 kB / 471.1 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.1051, allocations: 4 kB / 471.1 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.1051, allocations: 7.953 kB / 471.1 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001654/0.1053, allocations: 72.66 kB / 471.2 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008515/0.1061, allocations: 0.5495 MB / 471.7 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003476/0.1065, allocations: 118.6 kB / 471.8 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.077e-05/0.1066, allocations: 32.84 kB / 471.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.1066, allocations: 0 / 471.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002228/0.1069, allocations: 105 kB / 472 MB, free: 7.008 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.263e-06/0.1069, allocations: 3.938 kB / 472 MB, free: 7.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.000354/0.1072, allocations: 145.4 kB / 472.1 MB, free: 6.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.024e-05/0.1073, allocations: 106.8 kB / 472.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002756/0.1076, allocations: 276.8 kB / 472.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.1076, allocations: 29.7 kB / 472.5 MB, free: 6.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.1077, allocations: 143.7 kB / 472.7 MB, free: 6.266 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.338e-05/0.1078, allocations: 31.55 kB / 472.7 MB, free: 6.234 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.504e-06/0.1078, allocations: 8 kB / 472.7 MB, free: 6.227 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1079, allocations: 330.8 kB / 473 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.483e-05/0.108, allocations: 23.98 kB / 473.1 MB, free: 5.871 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.363e-05/0.1081, allocations: 74.89 kB / 473.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.363e-05/0.1082, allocations: 40.03 kB / 473.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1082, allocations: 0 / 473.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000244/0.1085, allocations: 137.3 kB / 473.3 MB, free: 5.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.1085, allocations: 6.188 kB / 473.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1085, allocations: 4 kB / 473.3 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.1085, allocations: 0 / 473.3 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.1086, allocations: 31.92 kB / 473.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.1087, allocations: 7.953 kB / 473.4 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.831e-05/0.1088, allocations: 23.92 kB / 473.4 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.1088, allocations: 4 kB / 473.4 MB, free: 5.527 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 ($whenCondition1,$PRE.table.nextTimeEvent,table.nextTimeEvent,$PRE.table.nextTimeEventScaled,table.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001345/0.1089, allocations: 138.9 kB / 473.5 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.022e-05/0.109, allocations: 19.72 kB / 473.5 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.269e-05/0.109, allocations: 21.72 kB / 473.6 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.109, allocations: 0 / 473.6 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.109, allocations: 7.875 kB / 473.6 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.1091, allocations: 7.938 kB / 473.6 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002222/0.1093, allocations: 245.6 kB / 473.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1093, allocations: 0 / 473.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.02e-05/0.1094, allocations: 12 kB / 473.8 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.1094, allocations: 0 / 473.8 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.1094, allocations: 7.984 kB / 473.8 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1094, allocations: 0 / 473.8 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1094, allocations: 0 / 473.8 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003567/0.1098, allocations: 188.8 kB / 474 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.852e-05/0.1099, allocations: 100.9 kB / 474.1 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.526e-05/0.1099, allocations: 4 kB / 474.1 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.862e-05/0.11, allocations: 11.98 kB / 474.1 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.933e-05/0.1101, allocations: 0 / 474.1 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.1101, allocations: 4 kB / 474.1 MB, free: 4.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002151/0.1103, allocations: 204.5 kB / 474.3 MB, free: 4.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1103, allocations: 0 / 474.3 MB, free: 4.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002953/0.1106, allocations: 47.92 kB / 474.4 MB, free: 4.434 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001746/0.1124, allocations: 1.072 MB / 475.4 MB, free: 3.512 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002167/0.1126, allocations: 79.91 kB / 475.5 MB, free: 3.434 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1126, allocations: 0 / 475.5 MB, free: 3.434 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.645e-05/0.1127, allocations: 39.92 kB / 475.6 MB, free: 3.395 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002826/0.113, allocations: 32.41 kB / 475.6 MB, free: 3.363 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/0.1148, allocations: 1.171 MB / 476.8 MB, free: 2.137 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.1151, allocations: 0.7361 MB / 477.5 MB, free: 1.375 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.689e-05/0.1152, allocations: 25.53 kB / 477.5 MB, free: 1.352 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.511e-05/0.1153, allocations: 59.41 kB / 477.6 MB, free: 1.293 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1153, allocations: 0 / 477.6 MB, free: 1.293 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01729/0.1326, allocations: 4.223 MB / 481.8 MB, free: 13.21 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000213/0.1328, allocations: 215.2 kB / 482 MB, free: 12.97 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.783/1.916, allocations: 0 / 482 MB, free: 12.97 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 & /home/hudson/saved_omc/OMSimulator/install/linux/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) Environment - environmentSimulation: