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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, 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.03811/0.03811, allocations: 8.704 MB / 21.96 MB, free: 3.734 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.369/1.369, allocations: 221.4 MB / 246 MB, free: 3.555 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.0008779/0.0008779, allocations: 98.23 kB / 299.1 MB, free: 3.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.481e-05/4.508e-05, allocations: 4 kB / 359.6 MB, free: 6.449 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3537/0.3538, allocations: 52.55 MB / 412.2 MB, free: 22.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1061/0.4599, allocations: 82.11 MB / 494.3 MB, free: 4.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/0.4602, allocations: 67.97 kB / 494.3 MB, free: 4.273 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01367/0.4739, allocations: 5.042 MB / 499.4 MB, free: 15.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4739, allocations: 0 / 499.4 MB, free: 15.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.637e-05/0.4739, allocations: 4 kB / 499.4 MB, free: 15.22 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.0005958/0.4745, allocations: 482 kB / 499.8 MB, free: 14.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.4746, allocations: 8.031 kB / 499.9 MB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.888e-05/0.4746, allocations: 50.55 kB / 499.9 MB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.004e-05/0.4747, allocations: 23.72 kB / 499.9 MB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003981/0.4751, allocations: 239.9 kB / 0.4884 GB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.4751, allocations: 8.234 kB / 0.4884 GB, free: 14.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.42e-05/0.4752, allocations: 12 kB / 0.4885 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002441/0.4754, allocations: 119.5 kB / 0.4886 GB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.4754, allocations: 0 / 0.4886 GB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.4755, allocations: 0 / 0.4886 GB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.4755, allocations: 4 kB / 0.4886 GB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001485/0.4756, allocations: 76.69 kB / 0.4886 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000896/0.4765, allocations: 0.5574 MB / 0.4892 GB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003041/0.4769, allocations: 110.7 kB / 0.4893 GB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.016e-05/0.4769, allocations: 40.97 kB / 0.4893 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.466e-05/0.477, allocations: 0 / 0.4893 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000173/0.4771, allocations: 101.1 kB / 0.4894 GB, free: 13.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.242e-06/0.4772, allocations: 0 / 0.4894 GB, free: 13.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002426/0.4774, allocations: 113.4 kB / 0.4895 GB, free: 13.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.634e-05/0.4775, allocations: 85.09 kB / 0.4896 GB, free: 13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002482/0.4777, allocations: 232.3 kB / 0.4898 GB, free: 12.76 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.4778, allocations: 25.7 kB / 0.4899 GB, free: 12.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.321e-05/0.4779, allocations: 143.8 kB / 0.49 GB, free: 12.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/0.4779, allocations: 31.55 kB / 0.49 GB, free: 12.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.652e-06/0.4779, allocations: 4 kB / 0.49 GB, free: 12.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.478, allocations: 338.9 kB / 0.4904 GB, free: 12.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.066e-05/0.4781, allocations: 27.94 kB / 0.4904 GB, free: 12.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.619e-05/0.4782, allocations: 67.47 kB / 0.4905 GB, free: 12.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.488e-05/0.4783, allocations: 31.92 kB / 0.4905 GB, free: 12.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4783, allocations: 4.031 kB / 0.4905 GB, free: 12.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001965/0.4785, allocations: 133.4 kB / 0.4906 GB, free: 11.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.4785, allocations: 4 kB / 0.4906 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.4785, allocations: 3.984 kB / 0.4906 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.5e-05/0.4785, allocations: 11.95 kB / 0.4906 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.4787, allocations: 23.94 kB / 0.4907 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.4787, allocations: 0 / 0.4907 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.465e-05/0.4788, allocations: 23.83 kB / 0.4907 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.4788, allocations: 8.094 kB / 0.4907 GB, free: 11.86 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.505e-05/0.4789, allocations: 112.9 kB / 0.4908 GB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.961e-05/0.4789, allocations: 23.75 kB / 0.4908 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002377/0.4792, allocations: 131.2 kB / 0.4909 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.4792, allocations: 7.953 kB / 0.4909 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.4792, allocations: 96 / 0.491 GB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.4792, allocations: 3.938 kB / 0.491 GB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002219/0.4794, allocations: 249.4 kB / 0.4912 GB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.4794, allocations: 0 / 0.4912 GB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.346e-05/0.4795, allocations: 20 kB / 0.4912 GB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.4795, allocations: 0 / 0.4912 GB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.4795, allocations: 7.984 kB / 0.4912 GB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.4796, allocations: 4 kB / 0.4912 GB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.4796, allocations: 7.891 kB / 0.4912 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002957/0.4799, allocations: 180.8 kB / 0.4914 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.423e-05/0.48, allocations: 101 kB / 0.4915 GB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.838e-05/0.48, allocations: 0 / 0.4915 GB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.465e-05/0.4801, allocations: 12.05 kB / 0.4915 GB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.385e-05/0.4801, allocations: 11.98 kB / 0.4915 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.4801, allocations: 7.953 kB / 0.4915 GB, free: 10.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001827/0.4803, allocations: 192.5 kB / 0.4917 GB, free: 10.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4803, allocations: 0 / 0.4917 GB, free: 10.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002355/0.4806, allocations: 51.84 kB / 0.4918 GB, free: 10.66 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.001238/0.4818, allocations: 0.994 MB / 0.4927 GB, free: 9.762 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001651/0.482, allocations: 75.92 kB / 0.4928 GB, free: 9.688 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.482, allocations: 0 / 0.4928 GB, free: 9.688 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.616e-05/0.4821, allocations: 35.94 kB / 0.4928 GB, free: 9.652 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002286/0.4823, allocations: 32.41 kB / 0.4929 GB, free: 9.621 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007417/0.4831, allocations: 384.5 kB / 0.4932 GB, free: 9.207 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.4834, allocations: 0.74 MB / 0.494 GB, free: 8.441 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.385e-05/0.4835, allocations: 17.2 kB / 0.494 GB, free: 8.426 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.4836, allocations: 63.41 kB / 0.494 GB, free: 8.363 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4836, allocations: 0 / 0.494 GB, free: 8.363 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01454/0.4981, allocations: 3.974 MB / 0.4979 GB, free: 4.488 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/0.4983, allocations: 170.9 kB / 0.4981 GB, free: 4.266 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.774/2.272, allocations: 4 kB / 0.4981 GB, free: 4.262 MB / 378.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_Tables_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_Tables.fmu > HanserModelica_HanserModelica.Electrical.Tables.pipe 2>&1)