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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.008408/0.008408, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06556/0.06556, allocations: 8.793 MB / 24.65 MB, free: 4.113 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 223.2 MB / 250.7 MB, free: 4.844 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008487/0.0008487, allocations: 98.52 kB / 304 MB, free: 3.586 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003285/0.0003285, allocations: 8 kB / 367.2 MB, free: 6.727 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08957/0.08991, allocations: 52.55 MB / 419.7 MB, free: 2.117 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2554/0.3453, allocations: 82.48 MB / 0.4904 GB, free: 9.953 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/0.3456, allocations: 75.97 kB / 0.4905 GB, free: 9.879 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01968/0.3653, allocations: 7.683 MB / 0.498 GB, free: 2.332 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3653, allocations: 0 / 0.498 GB, free: 2.332 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.3654, allocations: 11.92 kB / 0.498 GB, free: 2.32 MB / 362.7 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.0006381/0.366, allocations: 0.4933 MB / 0.4985 GB, free: 1.781 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.366, allocations: 13.5 kB / 0.4985 GB, free: 1.77 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.547e-05/0.3661, allocations: 42.56 kB / 0.4985 GB, free: 1.719 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.925e-05/0.3662, allocations: 28.14 kB / 0.4986 GB, free: 1.691 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003474/0.3665, allocations: 256.7 kB / 0.4988 GB, free: 1.398 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.3665, allocations: 8.234 kB / 0.4988 GB, free: 1.391 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.634e-05/0.3666, allocations: 12 kB / 0.4988 GB, free: 1.379 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002629/0.3668, allocations: 151.1 kB / 0.499 GB, free: 1.223 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.3669, allocations: 0 / 0.499 GB, free: 1.223 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.3669, allocations: 9.188 kB / 0.499 GB, free: 1.215 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.3669, allocations: 1.188 kB / 0.499 GB, free: 1.215 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001512/0.3671, allocations: 74.59 kB / 0.4991 GB, free: 1.145 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007784/0.3678, allocations: 0.5581 MB / 0.4996 GB, free: 0.5352 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003373/0.3682, allocations: 115.7 kB / 0.4997 GB, free: 424 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.3682, allocations: 0 / 0.4997 GB, free: 424 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.3684, allocations: 108.4 kB / 0.4998 GB, free: 300 kB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.112e-06/0.3684, allocations: 0.875 kB / 0.4998 GB, free: 300 kB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003287/0.3687, allocations: 145.4 kB / 0.5 GB, free: 148 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.3688, allocations: 107.7 kB / 0.5001 GB, free: 16 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002566/0.3691, allocations: 249.4 kB / 0.5003 GB, free: 15.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.3691, allocations: 30.36 kB / 0.5003 GB, free: 15.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.586e-05/0.3692, allocations: 139.9 kB / 0.5005 GB, free: 15.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.862e-05/0.3692, allocations: 36.73 kB / 0.5005 GB, free: 15.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/0.3692, allocations: 0 / 0.5005 GB, free: 15.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.3693, allocations: 330.8 kB / 0.5008 GB, free: 15.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.129e-05/0.3694, allocations: 28.86 kB / 0.5008 GB, free: 15.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.18e-05/0.3695, allocations: 75.06 kB / 0.5009 GB, free: 15.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.985e-05/0.3696, allocations: 34.66 kB / 0.5009 GB, free: 15.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/0.3696, allocations: 4 kB / 0.5009 GB, free: 15.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002293/0.3699, allocations: 142.9 kB / 0.5011 GB, free: 14.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.3699, allocations: 4 kB / 0.5011 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.3699, allocations: 3.188 kB / 0.5011 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.3699, allocations: 7.953 kB / 0.5011 GB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.37, allocations: 28.86 kB / 0.5011 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.37, allocations: 0 / 0.5011 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.3701, allocations: 15.84 kB / 0.5011 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.3702, allocations: 8 kB / 0.5011 GB, free: 14.87 MB / 378.7 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.0001132/0.3703, allocations: 137.4 kB / 0.5013 GB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.061e-05/0.3703, allocations: 23.72 kB / 0.5013 GB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000291/0.3706, allocations: 143.8 kB / 0.5014 GB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.3706, allocations: 7.953 kB / 0.5014 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.3706, allocations: 0 / 0.5014 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3706, allocations: 2.203 kB / 0.5014 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001977/0.3708, allocations: 249.4 kB / 0.5017 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3709, allocations: 1.594 kB / 0.5017 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.879e-05/0.371, allocations: 16 kB / 0.5017 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.371, allocations: 128 / 0.5017 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.371, allocations: 8 kB / 0.5017 GB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.371, allocations: 0 / 0.5017 GB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.371, allocations: 3.953 kB / 0.5017 GB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000323/0.3713, allocations: 196.8 kB / 0.5019 GB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.876e-05/0.3714, allocations: 108.8 kB / 0.502 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.195e-05/0.3715, allocations: 0 / 0.502 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.398e-05/0.3716, allocations: 16.05 kB / 0.502 GB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.625e-05/0.3716, allocations: 8 kB / 0.502 GB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.3716, allocations: 7.938 kB / 0.502 GB, free: 13.87 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000184/0.3718, allocations: 200.5 kB / 0.5022 GB, free: 13.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3718, allocations: 0 / 0.5022 GB, free: 13.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000268/0.3721, allocations: 55.94 kB / 0.5023 GB, free: 13.62 MB / 378.7 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.nextTimeEvent,table.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.001474/0.3736, allocations: 1.096 MB / 0.5033 GB, free: 12.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002054/0.3738, allocations: 83.89 kB / 0.5034 GB, free: 12.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.3738, allocations: 4.188 kB / 0.5034 GB, free: 12.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.286e-05/0.3739, allocations: 35.98 kB / 0.5035 GB, free: 12.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002317/0.3741, allocations: 28.42 kB / 0.5035 GB, free: 12.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.3759, allocations: 1.653 MB / 0.5051 GB, free: 10.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.3763, allocations: 0.7453 MB / 0.5058 GB, free: 10.15 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.321e-05/0.3764, allocations: 24.47 kB / 0.5059 GB, free: 10.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.377e-05/0.3765, allocations: 63.41 kB / 0.5059 GB, free: 10.07 MB / 378.7 MB Notification: Performance of SimCode: time 1.483e-06/0.3765, allocations: 0 / 0.5059 GB, free: 10.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01591/0.3924, allocations: 4.359 MB / 0.5102 GB, free: 5.926 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001604/0.3926, allocations: 211.7 kB / 0.5104 GB, free: 5.684 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/2.08, allocations: 0 / 0.5104 GB, free: 5.684 MB / 378.7 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)