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.007242/0.007242, allocations: 171.8 kB / 15.11 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05357/0.05357, allocations: 8.795 MB / 24.65 MB, free: 4.109 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.254/1.254, allocations: 223.2 MB / 250.7 MB, free: 6.57 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.0008462/0.0008462, allocations: 108.2 kB / 304 MB, free: 3.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003491/0.0003491, allocations: 12 kB / 367.1 MB, free: 4.832 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2458, allocations: 52.54 MB / 419.7 MB, free: 48.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09302/0.3389, allocations: 82.19 MB / 0.4901 GB, free: 6.871 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/0.3391, allocations: 71.97 kB / 0.4902 GB, free: 6.801 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01356/0.3527, allocations: 5.049 MB / 0.4951 GB, free: 1.766 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3528, allocations: 0 / 0.4951 GB, free: 1.766 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.466e-05/0.3528, allocations: 4 kB / 0.4951 GB, free: 1.762 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.0006455/0.3534, allocations: 0.5109 MB / 0.4956 GB, free: 1.199 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.3535, allocations: 8.562 kB / 0.4956 GB, free: 1.191 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.04e-05/0.3535, allocations: 46.55 kB / 0.4957 GB, free: 1.137 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.237e-05/0.3536, allocations: 23.72 kB / 0.4957 GB, free: 1.113 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.354, allocations: 243.8 kB / 0.4959 GB, free: 0.832 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.354, allocations: 8.234 kB / 0.4959 GB, free: 0.8242 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.577e-05/0.354, allocations: 12 kB / 0.4959 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002468/0.3543, allocations: 127.5 kB / 0.4961 GB, free: 0.6836 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.3543, allocations: 0 / 0.4961 GB, free: 0.6836 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.3543, allocations: 8 kB / 0.4961 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.3543, allocations: 4 kB / 0.4961 GB, free: 0.6719 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000157/0.3545, allocations: 72.66 kB / 0.4961 GB, free: 0.6016 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008326/0.3553, allocations: 0.5497 MB / 0.4967 GB, free: 15.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003549/0.3557, allocations: 110.7 kB / 0.4968 GB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.151e-05/0.3557, allocations: 0 / 0.4968 GB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002043/0.3559, allocations: 109.2 kB / 0.4969 GB, free: 15.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.273e-06/0.3559, allocations: 0 / 0.4969 GB, free: 15.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003524/0.3563, allocations: 149.4 kB / 0.497 GB, free: 15.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.197e-05/0.3564, allocations: 77.11 kB / 0.4971 GB, free: 15.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.3566, allocations: 235.3 kB / 0.4973 GB, free: 15.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.3567, allocations: 34.08 kB / 0.4974 GB, free: 15.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.738e-05/0.3568, allocations: 135.8 kB / 0.4975 GB, free: 15.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.393e-05/0.3568, allocations: 47.48 kB / 0.4975 GB, free: 15.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.05e-06/0.3568, allocations: 0 / 0.4975 GB, free: 15.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.357, allocations: 330.8 kB / 0.4979 GB, free: 14.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.229e-05/0.3571, allocations: 27.98 kB / 0.4979 GB, free: 14.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.846e-05/0.3572, allocations: 70.59 kB / 0.4979 GB, free: 14.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.809e-05/0.3572, allocations: 36.03 kB / 0.498 GB, free: 14.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.3573, allocations: 4 kB / 0.498 GB, free: 14.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002268/0.3575, allocations: 133.4 kB / 0.4981 GB, free: 14.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.3575, allocations: 4.781 kB / 0.4981 GB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.3575, allocations: 4 kB / 0.4981 GB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.3575, allocations: 7.953 kB / 0.4981 GB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.3577, allocations: 23.94 kB / 0.4982 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.3577, allocations: 7.922 kB / 0.4982 GB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.756e-05/0.3578, allocations: 23.94 kB / 0.4982 GB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.3578, allocations: 4 kB / 0.4982 GB, free: 14.35 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.0001243/0.3579, allocations: 137.8 kB / 0.4983 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.816e-05/0.358, allocations: 15.81 kB / 0.4983 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002793/0.3583, allocations: 141 kB / 0.4985 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.3583, allocations: 0 / 0.4985 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.3583, allocations: 3.953 kB / 0.4985 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.3583, allocations: 8 kB / 0.4985 GB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002256/0.3585, allocations: 249.4 kB / 0.4987 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3585, allocations: 0 / 0.4987 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.95e-05/0.3586, allocations: 16 kB / 0.4987 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.3586, allocations: 3.984 kB / 0.4987 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.3587, allocations: 0 / 0.4987 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3587, allocations: 0 / 0.4987 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/0.3587, allocations: 0 / 0.4987 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003462/0.359, allocations: 204.7 kB / 0.4989 GB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.502e-05/0.3591, allocations: 96.95 kB / 0.499 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.3592, allocations: 7.984 kB / 0.499 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.128e-05/0.3592, allocations: 8 kB / 0.499 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.393e-05/0.3593, allocations: 7.984 kB / 0.499 GB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.3593, allocations: 4 kB / 0.499 GB, free: 13.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001804/0.3595, allocations: 201.5 kB / 0.4992 GB, free: 13.17 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3595, allocations: 0 / 0.4992 GB, free: 13.17 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002558/0.3598, allocations: 51.84 kB / 0.4993 GB, free: 13.12 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.001347/0.3611, allocations: 1.039 MB / 0.5003 GB, free: 12.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002203/0.3613, allocations: 83.84 kB / 0.5004 GB, free: 12.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3614, allocations: 192 / 0.5004 GB, free: 12.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.047e-05/0.3615, allocations: 51.91 kB / 0.5004 GB, free: 12.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/0.3617, allocations: 32.41 kB / 0.5005 GB, free: 12.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001788/0.3635, allocations: 1.623 MB / 0.502 GB, free: 10.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.3638, allocations: 0.7361 MB / 0.5028 GB, free: 9.625 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.384e-05/0.3639, allocations: 25.42 kB / 0.5028 GB, free: 9.598 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.116e-05/0.364, allocations: 59.41 kB / 0.5028 GB, free: 9.539 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.364, allocations: 0 / 0.5028 GB, free: 9.539 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01489/0.3789, allocations: 4.008 MB / 0.5068 GB, free: 5.66 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000229/0.3792, allocations: 201.8 kB / 0.507 GB, free: 5.418 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/2.003, allocations: 0 / 0.507 GB, free: 5.418 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)