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.001075/0.001075, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04077/0.04077, allocations: 8.701 MB / 21.96 MB, free: 3.367 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.561/1.561, allocations: 221.4 MB / 246 MB, free: 3.594 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.0009051/0.0009053, allocations: 92.59 kB / 299.1 MB, free: 2.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.162e-05/3.165e-05, allocations: 4 kB / 359.6 MB, free: 6.414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2531, allocations: 52.54 MB / 412.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1006/0.3537, allocations: 82.42 MB / 494.6 MB, free: 3.988 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/0.354, allocations: 71.97 kB / 494.6 MB, free: 3.918 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0205/0.3745, allocations: 7.512 MB / 0.4904 GB, free: 12.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3746, allocations: 0 / 0.4904 GB, free: 12.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.896e-05/0.3746, allocations: 4 kB / 0.4904 GB, free: 12.39 MB / 378.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.0006938/0.3753, allocations: 478.1 kB / 0.4908 GB, free: 11.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.3754, allocations: 12.03 kB / 0.4909 GB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.384e-05/0.3754, allocations: 46.5 kB / 0.4909 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.689e-05/0.3755, allocations: 27.66 kB / 0.4909 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003969/0.3759, allocations: 247.8 kB / 0.4912 GB, free: 11.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.376, allocations: 12.23 kB / 0.4912 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.276e-05/0.376, allocations: 15.94 kB / 0.4912 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002849/0.3763, allocations: 145.4 kB / 0.4913 GB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.3763, allocations: 4 kB / 0.4913 GB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.3763, allocations: 0 / 0.4913 GB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.3764, allocations: 4 kB / 0.4913 GB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001502/0.3765, allocations: 68.69 kB / 0.4914 GB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009344/0.3774, allocations: 0.5611 MB / 0.4919 GB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003326/0.3778, allocations: 106.7 kB / 0.492 GB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.217e-05/0.3779, allocations: 36.86 kB / 0.4921 GB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.611e-05/0.3779, allocations: 4 kB / 0.4921 GB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001827/0.3781, allocations: 101.2 kB / 0.4922 GB, free: 10.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.3781, allocations: 0 / 0.4922 GB, free: 10.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002725/0.3784, allocations: 117.4 kB / 0.4923 GB, free: 10.22 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.083e-05/0.3785, allocations: 102.8 kB / 0.4924 GB, free: 10.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002779/0.3788, allocations: 248.8 kB / 0.4926 GB, free: 9.844 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.3788, allocations: 29.7 kB / 0.4927 GB, free: 9.809 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.917e-05/0.3789, allocations: 143.8 kB / 0.4928 GB, free: 9.664 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.623e-05/0.3789, allocations: 35.53 kB / 0.4928 GB, free: 9.629 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.35e-06/0.3789, allocations: 0 / 0.4928 GB, free: 9.629 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.3791, allocations: 330.8 kB / 0.4931 GB, free: 9.297 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.575e-05/0.3791, allocations: 27.98 kB / 0.4932 GB, free: 9.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.751e-05/0.3792, allocations: 69.16 kB / 0.4932 GB, free: 9.184 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.998e-05/0.3793, allocations: 35.86 kB / 0.4933 GB, free: 9.148 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.3793, allocations: 4 kB / 0.4933 GB, free: 9.145 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002331/0.3796, allocations: 133.4 kB / 0.4934 GB, free: 9.008 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.3796, allocations: 4.219 kB / 0.4934 GB, free: 9.004 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.3796, allocations: 15.89 kB / 0.4934 GB, free: 8.988 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.3796, allocations: 0 / 0.4934 GB, free: 8.988 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.3797, allocations: 27.92 kB / 0.4935 GB, free: 8.961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.3798, allocations: 4 kB / 0.4935 GB, free: 8.957 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.3799, allocations: 23.83 kB / 0.4935 GB, free: 8.934 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.3799, allocations: 4 kB / 0.4935 GB, free: 8.93 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 () * 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 7.687e-05/0.38, allocations: 111 kB / 0.4936 GB, free: 8.816 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.106e-05/0.38, allocations: 15.81 kB / 0.4936 GB, free: 8.801 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002456/0.3803, allocations: 139.4 kB / 0.4937 GB, free: 8.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.3803, allocations: 7.891 kB / 0.4937 GB, free: 8.652 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3803, allocations: 0 / 0.4937 GB, free: 8.652 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3803, allocations: 0 / 0.4937 GB, free: 8.652 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002295/0.3805, allocations: 245.5 kB / 0.494 GB, free: 8.363 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3806, allocations: 0 / 0.494 GB, free: 8.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.194e-05/0.3806, allocations: 19.98 kB / 0.494 GB, free: 8.344 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.3807, allocations: 4 kB / 0.494 GB, free: 8.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.3807, allocations: 0 / 0.494 GB, free: 8.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.3807, allocations: 0 / 0.494 GB, free: 8.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3807, allocations: 7.953 kB / 0.494 GB, free: 8.332 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002995/0.381, allocations: 188.8 kB / 0.4942 GB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.263e-05/0.3811, allocations: 108.8 kB / 0.4943 GB, free: 8.004 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.374e-05/0.3811, allocations: 4 kB / 0.4943 GB, free: 8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.006e-05/0.3812, allocations: 12 kB / 0.4943 GB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.256e-05/0.3813, allocations: 11.94 kB / 0.4943 GB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.3813, allocations: 8.062 kB / 0.4943 GB, free: 7.969 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00021/0.3815, allocations: 197.4 kB / 0.4945 GB, free: 7.773 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.3815, allocations: 0 / 0.4945 GB, free: 7.773 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002833/0.3818, allocations: 59.92 kB / 0.4946 GB, free: 7.715 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) * 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.001525/0.3834, allocations: 1.039 MB / 0.4956 GB, free: 6.789 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001913/0.3836, allocations: 83.8 kB / 0.4957 GB, free: 6.707 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3836, allocations: 3.938 kB / 0.4957 GB, free: 6.703 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.262e-05/0.3837, allocations: 39.94 kB / 0.4957 GB, free: 6.664 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.384, allocations: 34.09 kB / 0.4957 GB, free: 6.633 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009401/0.3849, allocations: 388.8 kB / 0.4961 GB, free: 6.215 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.3853, allocations: 0.7439 MB / 0.4968 GB, free: 5.445 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001051/0.3854, allocations: 21.31 kB / 0.4969 GB, free: 5.426 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.3855, allocations: 63.36 kB / 0.4969 GB, free: 5.363 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.3855, allocations: 0 / 0.4969 GB, free: 5.363 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02061/0.4062, allocations: 4.331 MB / 0.5011 GB, free: 1.133 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002216/0.4064, allocations: 188.1 kB / 0.5013 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.776/2.183, allocations: 3.938 kB / 0.5013 GB, free: 0.9023 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)