Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.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.TestElectrical3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 108.3 kB / 17.06 MB, free: 5.824 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.00163/0.00163, allocations: 191 kB / 18 MB, free: 4.977 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.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2576/0.2576, allocations: 48.84 MB / 320.1 MB, free: 11.02 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.001363/0.001363, allocations: 71.88 kB / 450.5 MB, free: 8.566 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0926/0.09398, allocations: 59.15 MB / 0.4977 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003075/0.09708, allocations: 2.292 MB / 0.5 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009669/0.09807, allocations: 0.6514 MB / 0.5006 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.0982, allocations: 7.938 kB / 0.5006 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.09834, allocations: 27.66 kB / 0.5006 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002249/0.09857, allocations: 79.34 kB / 0.5007 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001628/0.09874, allocations: 71.84 kB / 0.5008 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002948/0.09905, allocations: 282.8 kB / 0.501 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.09921, allocations: 69.27 kB / 0.5011 GB, free: 9.785 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.09938, allocations: 123.4 kB / 0.5012 GB, free: 9.664 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.09956, allocations: 115.5 kB / 0.5013 GB, free: 9.551 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.191e-05/0.0996, allocations: 16 kB / 0.5014 GB, free: 9.535 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.262e-05/0.09967, allocations: 28 kB / 0.5014 GB, free: 9.508 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.648e-05/0.09972, allocations: 51.7 kB / 0.5014 GB, free: 9.457 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.09984, allocations: 119.3 kB / 0.5015 GB, free: 9.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002672/0.1001, allocations: 231.1 kB / 0.5018 GB, free: 9.113 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1001, allocations: 3.938 kB / 0.5018 GB, free: 9.109 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1001, allocations: 0 / 0.5018 GB, free: 9.109 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.361e-06/0.1001, allocations: 0 / 0.5018 GB, free: 9.109 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0008371/0.101, allocations: 0.5607 MB / 0.5023 GB, free: 8.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.101, allocations: 19.83 kB / 0.5023 GB, free: 8.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.251e-05/0.1011, allocations: 28.56 kB / 0.5024 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000291/0.1014, allocations: 278.7 kB / 0.5026 GB, free: 8.141 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.093e-05/0.1015, allocations: 38.27 kB / 0.5027 GB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.951e-05/0.1015, allocations: 24.36 kB / 0.5027 GB, free: 8.074 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003239/0.1019, allocations: 179 kB / 0.5029 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.1019, allocations: 0 / 0.5029 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.1019, allocations: 8 kB / 0.5029 GB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.1019, allocations: 4 kB / 0.5029 GB, free: 7.875 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002844/0.1022, allocations: 127.8 kB / 0.503 GB, free: 7.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008724/0.1031, allocations: 0.6617 MB / 0.5036 GB, free: 7.027 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003502/0.1034, allocations: 154.4 kB / 0.5038 GB, free: 6.867 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.1036, allocations: 76.83 kB / 0.5039 GB, free: 6.789 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.1036, allocations: 7.938 kB / 0.5039 GB, free: 6.781 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.84e-05/0.1037, allocations: 34.56 kB / 0.5039 GB, free: 6.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.323e-06/0.1037, allocations: 0 / 0.5039 GB, free: 6.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001047/0.1047, allocations: 0.5795 MB / 0.5045 GB, free: 6.105 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.217e-05/0.1048, allocations: 59.39 kB / 0.5045 GB, free: 6.035 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002269/0.105, allocations: 233 kB / 0.5047 GB, free: 5.801 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.105, allocations: 29.7 kB / 0.5048 GB, free: 5.766 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.429e-05/0.1051, allocations: 148.3 kB / 0.5049 GB, free: 5.617 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.357e-05/0.1052, allocations: 67.02 kB / 0.505 GB, free: 5.551 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.285e-05/0.1052, allocations: 41.7 kB / 0.505 GB, free: 5.504 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.1054, allocations: 338.8 kB / 0.5053 GB, free: 5.164 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001389/0.1055, allocations: 59.91 kB / 0.5054 GB, free: 5.105 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.1057, allocations: 79.2 kB / 0.5055 GB, free: 5.023 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.1059, allocations: 141.5 kB / 0.5056 GB, free: 4.879 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1059, allocations: 8 kB / 0.5056 GB, free: 4.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000354/0.1063, allocations: 205.2 kB / 0.5058 GB, free: 4.664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.1063, allocations: 8 kB / 0.5058 GB, free: 4.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.1063, allocations: 0 / 0.5058 GB, free: 4.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.1064, allocations: 3.938 kB / 0.5058 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004078/0.1068, allocations: 79.92 kB / 0.5059 GB, free: 4.574 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.1068, allocations: 4 kB / 0.5059 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.1069, allocations: 8 kB / 0.5059 GB, free: 4.562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.1069, allocations: 7.984 kB / 0.5059 GB, free: 4.555 MB / 398.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: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.0001097/0.107, allocations: 133.8 kB / 0.506 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.738e-05/0.1071, allocations: 23.72 kB / 0.5061 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.625e-05/0.1072, allocations: 26.19 kB / 0.5061 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.261e-06/0.1072, allocations: 7.984 kB / 0.5061 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.1072, allocations: 0 / 0.5061 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.1072, allocations: 0 / 0.5061 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007155/0.1079, allocations: 0.549 MB / 0.5066 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1079, allocations: 0 / 0.5066 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003773/0.1083, allocations: 67.91 kB / 0.5067 GB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.1083, allocations: 7.984 kB / 0.5067 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.1083, allocations: 0 / 0.5067 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.227e-06/0.1083, allocations: 0 / 0.5067 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.1084, allocations: 11.86 kB / 0.5067 GB, free: 3.664 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005203/0.1089, allocations: 351.4 kB / 0.5071 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.541e-05/0.109, allocations: 116.8 kB / 0.5072 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.103e-05/0.109, allocations: 0 / 0.5072 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.1092, allocations: 8 kB / 0.5072 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.187e-05/0.1092, allocations: 19.91 kB / 0.5072 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.1093, allocations: 8 kB / 0.5072 GB, free: 3.137 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00014/0.1094, allocations: 168.5 kB / 0.5074 GB, free: 2.973 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.174e-06/0.1094, allocations: 0 / 0.5074 GB, free: 2.973 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002703/0.1097, allocations: 47.94 kB / 0.5074 GB, free: 2.926 MB / 398.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: 1 (BreakerCommand.y) * 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 9.066e-05/0.1098, allocations: 95.25 kB / 0.5075 GB, free: 2.824 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003524/0.1101, allocations: 147.9 kB / 0.5076 GB, free: 2.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1102, allocations: 4 kB / 0.5076 GB, free: 2.676 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001462/0.1103, allocations: 71.91 kB / 0.5077 GB, free: 2.605 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003631/0.1107, allocations: 40.36 kB / 0.5078 GB, free: 2.566 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.1117, allocations: 0.6557 MB / 0.5084 GB, free: 1.883 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002859/0.112, allocations: 0.7478 MB / 0.5091 GB, free: 1.109 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.224e-05/0.1121, allocations: 17.95 kB / 0.5091 GB, free: 1.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.823e-05/0.1122, allocations: 23.44 kB / 0.5092 GB, free: 1.066 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1122, allocations: 0 / 0.5092 GB, free: 1.066 MB / 398.1 MB Notification: Performance of Templates: time 0.004696/0.1169, allocations: 2.033 MB / 0.5111 GB, free: 15.03 MB / 414.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)