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.001453/0.001453, allocations: 108.1 kB / 16.92 MB, free: 5.762 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.001642/0.001642, allocations: 187.3 kB / 17.85 MB, free: 5.176 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.421/1.421, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2645/0.2645, allocations: 48.84 MB / 319.9 MB, free: 11.11 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.001404/0.001404, allocations: 67.2 kB / 390.1 MB, free: 48.81 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08868/0.0901, allocations: 59.17 MB / 449.2 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003665/0.09379, allocations: 2.275 MB / 451.5 MB, free: 7.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.095, allocations: 0.6592 MB / 452.2 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.09517, allocations: 7.938 kB / 452.2 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.0953, allocations: 31.66 kB / 452.2 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002294/0.09554, allocations: 75.34 kB / 452.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001621/0.09571, allocations: 63.84 kB / 452.3 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002763/0.09599, allocations: 278.7 kB / 452.6 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.09616, allocations: 64.7 kB / 452.7 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001474/0.09632, allocations: 99.58 kB / 452.8 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001888/0.09651, allocations: 119.4 kB / 452.9 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.459e-05/0.09657, allocations: 16 kB / 452.9 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.306e-05/0.09665, allocations: 20 kB / 452.9 MB, free: 6.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.544e-05/0.0967, allocations: 51.78 kB / 453 MB, free: 6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.09681, allocations: 119.3 kB / 453.1 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.09706, allocations: 223.4 kB / 453.3 MB, free: 5.664 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.09707, allocations: 3.938 kB / 453.3 MB, free: 5.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.09708, allocations: 0 / 453.3 MB, free: 5.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.09709, allocations: 0 / 453.3 MB, free: 5.66 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.000848/0.09794, allocations: 0.5528 MB / 453.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.09799, allocations: 11.89 kB / 453.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.0981, allocations: 32.56 kB / 453.9 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002725/0.09838, allocations: 254.8 kB / 454.2 MB, free: 4.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.0984, allocations: 16.38 kB / 454.2 MB, free: 4.715 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.645e-05/0.09844, allocations: 16.38 kB / 454.2 MB, free: 4.699 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003078/0.09876, allocations: 175.4 kB / 454.4 MB, free: 4.516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.09878, allocations: 4 kB / 454.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.09881, allocations: 8 kB / 454.4 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.09882, allocations: 7.938 kB / 454.4 MB, free: 4.496 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002782/0.0991, allocations: 115.9 kB / 454.5 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008969/0.1, allocations: 0.6502 MB / 455.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002529/0.1003, allocations: 142.4 kB / 455.3 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001439/0.1004, allocations: 76.81 kB / 455.4 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.1005, allocations: 0 / 455.4 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.552e-05/0.1005, allocations: 42.55 kB / 455.4 MB, free: 3.395 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.243e-06/0.1005, allocations: 0 / 455.4 MB, free: 3.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001029/0.1015, allocations: 0.5477 MB / 456 MB, free: 2.797 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.1016, allocations: 51.41 kB / 456 MB, free: 2.734 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002251/0.1018, allocations: 229 kB / 456.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.1019, allocations: 33.64 kB / 456.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.102, allocations: 148.3 kB / 456.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.051e-05/0.102, allocations: 74.98 kB / 456.5 MB, free: 2.242 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.162e-05/0.1021, allocations: 41.66 kB / 456.5 MB, free: 2.195 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.1022, allocations: 338.8 kB / 456.9 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.1024, allocations: 51.97 kB / 456.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.1025, allocations: 77.53 kB / 457 MB, free: 1.723 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.1028, allocations: 125.5 kB / 457.1 MB, free: 1.594 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.1028, allocations: 4 kB / 457.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000349/0.1031, allocations: 201.6 kB / 457.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.1032, allocations: 4 kB / 457.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.1032, allocations: 0 / 457.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.1032, allocations: 0 / 457.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003703/0.1036, allocations: 67.89 kB / 457.4 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00115/0.1047, allocations: 1.445 MB / 458.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.1049, allocations: 8.031 kB / 458.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.1049, allocations: 4 kB / 458.8 MB, free: 15.71 MB / 350.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.0001124/0.105, allocations: 134 kB / 459 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.726e-05/0.1051, allocations: 23.72 kB / 459 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003579/0.1054, allocations: 192.8 kB / 459.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.1054, allocations: 0 / 459.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.1054, allocations: 0 / 459.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.1055, allocations: 0 / 459.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007548/0.1062, allocations: 0.5268 MB / 459.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1062, allocations: 3.938 kB / 459.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002272/0.1065, allocations: 47.97 kB / 459.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.1065, allocations: 4 kB / 459.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.1065, allocations: 3.938 kB / 459.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.1065, allocations: 4 kB / 459.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1065, allocations: 0 / 459.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004949/0.107, allocations: 344.1 kB / 460.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.719e-05/0.1071, allocations: 108.8 kB / 460.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.847e-05/0.1072, allocations: 4 kB / 460.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.1073, allocations: 12 kB / 460.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.005e-05/0.1074, allocations: 16.05 kB / 460.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.1074, allocations: 8 kB / 460.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001598/0.1075, allocations: 168.5 kB / 460.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.483e-06/0.1076, allocations: 0 / 460.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002934/0.1079, allocations: 51.94 kB / 460.5 MB, free: 13.98 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 0.0001043/0.108, allocations: 95.19 kB / 460.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005496/0.1085, allocations: 184.3 kB / 460.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1085, allocations: 0 / 460.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000153/0.1087, allocations: 67.91 kB / 460.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003829/0.1091, allocations: 48.39 kB / 460.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001209/0.1103, allocations: 0.6636 MB / 461.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.1106, allocations: 0.7482 MB / 462.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001026/0.1107, allocations: 25.53 kB / 462.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.364e-05/0.1108, allocations: 23.38 kB / 462.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1108, allocations: 0 / 462.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of Templates: time 0.005567/0.1164, allocations: 2.32 MB / 464.6 MB, free: 9.758 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)