Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 110 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 186.5 kB / 17.42 MB, free: 6.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.285/1.285, allocations: 205.1 MB / 223.3 MB, free: 12.51 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2534/0.2534, allocations: 48.84 MB / 319.5 MB, free: 11.32 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 60.81 kB / 389.4 MB, free: 49.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07256/0.07384, allocations: 59.17 MB / 448.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.00342/0.07729, allocations: 2.441 MB / 451 MB, free: 7.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001046/0.07836, allocations: 0.6748 MB / 451.6 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.07848, allocations: 3.938 kB / 451.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.07861, allocations: 19.84 kB / 451.7 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001931/0.07882, allocations: 71.45 kB / 451.7 MB, free: 7.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000121/0.07895, allocations: 43.95 kB / 451.8 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002426/0.0792, allocations: 266.8 kB / 452 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.07934, allocations: 64.62 kB / 452.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.07948, allocations: 99.52 kB / 452.2 MB, free: 6.562 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.07963, allocations: 111.5 kB / 452.3 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.086e-05/0.07967, allocations: 12 kB / 452.3 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.326e-05/0.07974, allocations: 15.98 kB / 452.3 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.01e-05/0.07979, allocations: 47.72 kB / 452.4 MB, free: 6.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.0799, allocations: 115.3 kB / 452.5 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002052/0.08011, allocations: 211.4 kB / 452.7 MB, free: 6.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.08012, allocations: 3.938 kB / 452.7 MB, free: 6.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.08013, allocations: 0 / 452.7 MB, free: 6.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.08014, allocations: 0 / 452.7 MB, free: 6.055 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0008666/0.08101, allocations: 0.549 MB / 453.2 MB, free: 5.457 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.08105, allocations: 11.97 kB / 453.3 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.58e-05/0.08115, allocations: 32.56 kB / 453.3 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.08144, allocations: 258.8 kB / 453.5 MB, free: 5.125 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.08146, allocations: 12.38 kB / 453.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.093e-05/0.08151, allocations: 16.38 kB / 453.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000303/0.08182, allocations: 183.4 kB / 453.7 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.08184, allocations: 0 / 453.7 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.08186, allocations: 4 kB / 453.8 MB, free: 4.902 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.08187, allocations: 4 kB / 453.8 MB, free: 4.898 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002745/0.08215, allocations: 127.6 kB / 453.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008546/0.08301, allocations: 0.6425 MB / 454.5 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002396/0.08327, allocations: 138.3 kB / 454.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001437/0.08342, allocations: 84.86 kB / 454.7 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.08345, allocations: 4 kB / 454.7 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.08347, allocations: 30.56 kB / 454.8 MB, free: 3.797 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.243e-06/0.08348, allocations: 0 / 454.8 MB, free: 3.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.000999/0.08448, allocations: 0.5514 MB / 455.3 MB, free: 3.195 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.733e-05/0.08452, allocations: 59.34 kB / 455.4 MB, free: 3.125 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002356/0.08477, allocations: 229 kB / 455.6 MB, free: 2.895 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.08479, allocations: 33.64 kB / 455.6 MB, free: 2.855 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.192e-05/0.08489, allocations: 148.3 kB / 455.8 MB, free: 2.707 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.438e-05/0.08494, allocations: 67 kB / 455.9 MB, free: 2.641 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.063e-05/0.08501, allocations: 41.7 kB / 455.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.08513, allocations: 334.8 kB / 456.2 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.08526, allocations: 51.97 kB / 456.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.0854, allocations: 77.67 kB / 456.3 MB, free: 2.125 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/0.08565, allocations: 133.8 kB / 456.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.08566, allocations: 0 / 456.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003273/0.086, allocations: 197.2 kB / 456.7 MB, free: 1.789 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.08602, allocations: 7.938 kB / 456.7 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.08603, allocations: 0 / 456.7 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.08605, allocations: 7.984 kB / 456.7 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003779/0.08643, allocations: 71.89 kB / 456.8 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009471/0.08739, allocations: 1.335 MB / 458.1 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000139/0.08754, allocations: 11.97 kB / 458.1 MB, free: 224 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.08756, allocations: 8.188 kB / 458.1 MB, free: 216 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.08768, allocations: 141.8 kB / 458.2 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.387e-05/0.08773, allocations: 19.72 kB / 458.3 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003497/0.08809, allocations: 186 kB / 458.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.0881, allocations: 0 / 458.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-06/0.08811, allocations: 0 / 458.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.08811, allocations: 3.938 kB / 458.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006474/0.08877, allocations: 0.5257 MB / 459 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.08878, allocations: 0 / 459 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002292/0.08902, allocations: 47.97 kB / 459 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.08903, allocations: 0 / 459 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.08905, allocations: 3.938 kB / 459 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.08906, allocations: 7.938 kB / 459 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.08906, allocations: 0 / 459 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000451/0.08952, allocations: 343.4 kB / 459.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.646e-05/0.08962, allocations: 112.8 kB / 459.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.963e-05/0.08965, allocations: 3.938 kB / 459.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001525/0.08981, allocations: 8 kB / 459.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.976e-05/0.08986, allocations: 11.97 kB / 459.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.08987, allocations: 8 kB / 459.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000146/0.09003, allocations: 172.5 kB / 459.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09003, allocations: 0 / 459.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002756/0.09031, allocations: 48 kB / 459.7 MB, free: 14.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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 Backend phase and start with SimCode phase: time 8.467e-05/0.0904, allocations: 103.1 kB / 459.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005233/0.09093, allocations: 172.1 kB / 460 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.09095, allocations: 0 / 460 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001327/0.09109, allocations: 71.91 kB / 460.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.09146, allocations: 40.39 kB / 460.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.09259, allocations: 0.7356 MB / 460.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.09288, allocations: 0.7563 MB / 461.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.09299, allocations: 25.53 kB / 461.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.644e-05/0.09306, allocations: 27.44 kB / 461.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.09307, allocations: 0 / 461.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of Templates: time 0.004525/0.0976, allocations: 2.165 MB / 463.8 MB, free: 10.34 MB / 350.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)