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/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-master/package.mo", uses=false) 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) 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008077/0.008077, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.418/1.418, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.00137/0.00137, allocations: 200.4 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03549/0.03549, allocations: 8.787 MB / 348.6 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 79.88 kB / 463.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08704/0.08872, allocations: 51.56 MB / 0.5029 GB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Electrical.Tables): time 0.003232/0.09199, allocations: 2.165 MB / 0.505 GB, free: 7.984 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.09353, allocations: 0.9469 MB / 0.5059 GB, free: 7.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.09367, allocations: 4 kB / 0.5059 GB, free: 7.027 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003337/0.09402, allocations: 99.55 kB / 0.506 GB, free: 6.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002934/0.09433, allocations: 103.4 kB / 0.5061 GB, free: 6.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003601/0.0947, allocations: 139.5 kB / 0.5063 GB, free: 6.695 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002567/0.09497, allocations: 215.2 kB / 0.5065 GB, free: 6.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.09511, allocations: 49.66 kB / 0.5065 GB, free: 6.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.09526, allocations: 95.62 kB / 0.5066 GB, free: 6.344 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001564/0.09542, allocations: 107.6 kB / 0.5067 GB, free: 6.238 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.838e-05/0.09546, allocations: 12 kB / 0.5067 GB, free: 6.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001143/0.09558, allocations: 55.92 kB / 0.5068 GB, free: 6.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.913e-05/0.09566, allocations: 43.84 kB / 0.5068 GB, free: 6.129 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.055e-05/0.09575, allocations: 87.47 kB / 0.5069 GB, free: 6.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002835/0.09604, allocations: 231.5 kB / 0.5071 GB, free: 5.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.09606, allocations: 3.938 kB / 0.5071 GB, free: 5.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.09606, allocations: 0 / 0.5071 GB, free: 5.812 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.09607, allocations: 0 / 0.5071 GB, free: 5.812 MB / 350.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.0006732/0.09675, allocations: 0.4948 MB / 0.5076 GB, free: 5.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.0968, allocations: 19.97 kB / 0.5076 GB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.533e-05/0.09686, allocations: 46.73 kB / 0.5077 GB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.036e-05/0.09691, allocations: 16.75 kB / 0.5077 GB, free: 5.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003158/0.09724, allocations: 248.9 kB / 0.5079 GB, free: 4.891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.09726, allocations: 12.61 kB / 0.5079 GB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.0973, allocations: 19.88 kB / 0.508 GB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002398/0.09754, allocations: 115.5 kB / 0.5081 GB, free: 4.742 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.09756, allocations: 0 / 0.5081 GB, free: 4.742 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.09759, allocations: 8 kB / 0.5081 GB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.0976, allocations: 4 kB / 0.5081 GB, free: 4.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001577/0.09776, allocations: 76.66 kB / 0.5081 GB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007611/0.09853, allocations: 0.5379 MB / 0.5087 GB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.0989, allocations: 110.7 kB / 0.5088 GB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.072e-05/0.099, allocations: 32.84 kB / 0.5088 GB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.09903, allocations: 4 kB / 0.5088 GB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000208/0.09924, allocations: 105 kB / 0.5089 GB, free: 3.777 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.09925, allocations: 0 / 0.5089 GB, free: 3.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003515/0.09961, allocations: 145.4 kB / 0.5091 GB, free: 3.629 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.112e-05/0.09967, allocations: 77.11 kB / 0.5091 GB, free: 3.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002428/0.09992, allocations: 260.2 kB / 0.5094 GB, free: 3.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.09995, allocations: 29.7 kB / 0.5094 GB, free: 3.234 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.27e-05/0.1, allocations: 148.1 kB / 0.5095 GB, free: 3.086 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.982e-05/0.1001, allocations: 31.59 kB / 0.5096 GB, free: 3.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.325e-05/0.1001, allocations: 25.72 kB / 0.5096 GB, free: 3.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1003, allocations: 338.8 kB / 0.5099 GB, free: 2.684 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.428e-05/0.1003, allocations: 35.86 kB / 0.51 GB, free: 2.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.578e-05/0.1004, allocations: 64.28 kB / 0.51 GB, free: 2.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001527/0.1006, allocations: 91.33 kB / 0.5101 GB, free: 2.469 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1006, allocations: 4 kB / 0.5101 GB, free: 2.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000248/0.1009, allocations: 145.3 kB / 0.5102 GB, free: 2.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.1009, allocations: 4 kB / 0.5102 GB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1009, allocations: 0 / 0.5102 GB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.1009, allocations: 4 kB / 0.5103 GB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.101, allocations: 23.98 kB / 0.5103 GB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.1011, allocations: 3.938 kB / 0.5103 GB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.766e-05/0.1012, allocations: 19.98 kB / 0.5103 GB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.1012, allocations: 8 kB / 0.5103 GB, free: 2.254 MB / 350.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 ($PRE.table.nextTimeEvent,$whenCondition1,table.nextTimeEventScaled,$PRE.table.nextTimeEventScaled,table.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.1013, allocations: 145.6 kB / 0.5104 GB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.135e-05/0.1013, allocations: 15.81 kB / 0.5105 GB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.112e-05/0.1014, allocations: 21.41 kB / 0.5105 GB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1014, allocations: 0 / 0.5105 GB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.1014, allocations: 0 / 0.5105 GB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.1014, allocations: 3.984 kB / 0.5105 GB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001971/0.1016, allocations: 241.4 kB / 0.5107 GB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1016, allocations: 0 / 0.5107 GB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.276e-05/0.1017, allocations: 16 kB / 0.5107 GB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.1017, allocations: 4 kB / 0.5107 GB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.1018, allocations: 3.938 kB / 0.5107 GB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1018, allocations: 0 / 0.5107 GB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1018, allocations: 3.938 kB / 0.5107 GB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003461/0.1021, allocations: 188.8 kB / 0.5109 GB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.096e-05/0.1022, allocations: 92.95 kB / 0.511 GB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.803e-05/0.1022, allocations: 4.062 kB / 0.511 GB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.359e-05/0.1023, allocations: 7.984 kB / 0.511 GB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.835e-05/0.1023, allocations: 8 kB / 0.511 GB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.1024, allocations: 4 kB / 0.511 GB, free: 1.402 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000158/0.1025, allocations: 197.6 kB / 0.5112 GB, free: 1.211 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1025, allocations: 0 / 0.5112 GB, free: 1.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002505/0.1028, allocations: 43.84 kB / 0.5113 GB, free: 1.168 MB / 350.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001375/0.1042, allocations: 1.026 MB / 0.5123 GB, free: 280 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002411/0.1044, allocations: 83.78 kB / 0.5123 GB, free: 196 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.1044, allocations: 0 / 0.5123 GB, free: 196 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.526e-05/0.1045, allocations: 35.92 kB / 0.5124 GB, free: 160 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003129/0.1048, allocations: 47.75 kB / 0.5124 GB, free: 116 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/0.1074, allocations: 2.048 MB / 0.5144 GB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.1077, allocations: 0.7397 MB / 0.5151 GB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.012e-05/0.1078, allocations: 17.55 kB / 0.5152 GB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.829e-05/0.1079, allocations: 59.34 kB / 0.5152 GB, free: 13.12 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1079, allocations: 0 / 0.5152 GB, free: 13.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.1299, allocations: 4.448 MB / 0.5196 GB, free: 8.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.741/7.871, allocations: 13.95 kB / 0.5196 GB, free: 8.758 MB / 366.1 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/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)