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.001227/0.001228, allocations: 106.9 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.001213/0.001213, 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.319/1.319, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2554/0.2554, allocations: 48.83 MB / 320.1 MB, free: 11.01 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.001523/0.001523, allocations: 67.89 kB / 450.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1089, allocations: 59.15 MB / 0.4977 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003743/0.1126, allocations: 2.284 MB / 0.5 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.1141, allocations: 0.6514 MB / 0.5006 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002286/0.1143, allocations: 4 kB / 0.5006 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001795/0.1146, allocations: 35.59 kB / 0.5006 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002914/0.1149, allocations: 83.33 kB / 0.5007 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001888/0.1151, allocations: 63.86 kB / 0.5008 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003017/0.1154, allocations: 282.8 kB / 0.501 GB, free: 9.852 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.1156, allocations: 77.23 kB / 0.5011 GB, free: 9.773 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001673/0.1157, allocations: 119.5 kB / 0.5012 GB, free: 9.656 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.1159, allocations: 119.4 kB / 0.5013 GB, free: 9.539 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.641e-05/0.116, allocations: 20 kB / 0.5014 GB, free: 9.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.378e-05/0.116, allocations: 24 kB / 0.5014 GB, free: 9.496 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.137e-05/0.1161, allocations: 47.78 kB / 0.5014 GB, free: 9.449 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.1162, allocations: 127.3 kB / 0.5016 GB, free: 9.324 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002732/0.1165, allocations: 231.1 kB / 0.5018 GB, free: 9.098 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1165, allocations: 3.938 kB / 0.5018 GB, free: 9.094 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1165, allocations: 0 / 0.5018 GB, free: 9.094 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1165, allocations: 0 / 0.5018 GB, free: 9.094 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.000897/0.1174, allocations: 0.5607 MB / 0.5023 GB, free: 8.484 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.1175, allocations: 11.89 kB / 0.5023 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.1176, allocations: 32.56 kB / 0.5024 GB, free: 8.441 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003542/0.118, allocations: 270.7 kB / 0.5026 GB, free: 8.137 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.535e-05/0.118, allocations: 42.27 kB / 0.5027 GB, free: 8.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.505e-05/0.1181, allocations: 16.38 kB / 0.5027 GB, free: 8.074 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/0.1184, allocations: 186.9 kB / 0.5029 GB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.1185, allocations: 0 / 0.5029 GB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.1185, allocations: 4 kB / 0.5029 GB, free: 7.875 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.1185, allocations: 4 kB / 0.5029 GB, free: 7.871 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003008/0.1188, allocations: 127.9 kB / 0.503 GB, free: 7.746 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009612/0.1198, allocations: 0.6617 MB / 0.5036 GB, free: 7.023 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003573/0.1201, allocations: 162.4 kB / 0.5038 GB, free: 6.855 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.1203, allocations: 76.83 kB / 0.5039 GB, free: 6.777 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.545e-05/0.1203, allocations: 3.938 kB / 0.5039 GB, free: 6.773 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.1204, allocations: 34.56 kB / 0.5039 GB, free: 6.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.413e-06/0.1204, allocations: 0 / 0.5039 GB, free: 6.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001159/0.1215, allocations: 0.5795 MB / 0.5045 GB, free: 6.098 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.779e-05/0.1216, allocations: 51.41 kB / 0.5045 GB, free: 6.035 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000233/0.1218, allocations: 241 kB / 0.5047 GB, free: 5.793 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.1219, allocations: 29.7 kB / 0.5048 GB, free: 5.758 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.122, allocations: 152.3 kB / 0.5049 GB, free: 5.605 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.953e-05/0.122, allocations: 67 kB / 0.505 GB, free: 5.539 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.524e-05/0.1221, allocations: 37.7 kB / 0.505 GB, free: 5.496 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.1222, allocations: 342.8 kB / 0.5053 GB, free: 5.152 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.1224, allocations: 51.97 kB / 0.5054 GB, free: 5.102 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.1225, allocations: 83.2 kB / 0.5055 GB, free: 5.016 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002952/0.1228, allocations: 145.5 kB / 0.5056 GB, free: 4.867 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.1228, allocations: 0 / 0.5056 GB, free: 4.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000388/0.1232, allocations: 209.2 kB / 0.5058 GB, free: 4.656 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.1233, allocations: 4 kB / 0.5058 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.1233, allocations: 0 / 0.5058 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.1233, allocations: 7.938 kB / 0.5058 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004317/0.1237, allocations: 75.98 kB / 0.5059 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.1238, allocations: 0 / 0.5059 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001397/0.1239, allocations: 12 kB / 0.5059 GB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.1239, allocations: 4 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.0001212/0.124, allocations: 141.7 kB / 0.506 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.82e-05/0.1241, allocations: 23.72 kB / 0.5061 GB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.867e-05/0.1242, allocations: 30.19 kB / 0.5061 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.1242, allocations: 7.969 kB / 0.5061 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1242, allocations: 4 kB / 0.5061 GB, free: 4.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1242, allocations: 0 / 0.5061 GB, free: 4.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007456/0.1249, allocations: 0.5451 MB / 0.5066 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.125, allocations: 0 / 0.5066 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003933/0.1254, allocations: 63.97 kB / 0.5067 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.1254, allocations: 0 / 0.5067 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/0.1254, allocations: 7.984 kB / 0.5067 GB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.1254, allocations: 0 / 0.5067 GB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.1254, allocations: 11.81 kB / 0.5067 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005538/0.126, allocations: 347.4 kB / 0.5071 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.67e-05/0.1261, allocations: 116.8 kB / 0.5072 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.672e-05/0.1261, allocations: 4 kB / 0.5072 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.1263, allocations: 8 kB / 0.5072 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.162e-05/0.1263, allocations: 19.91 kB / 0.5072 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.1263, allocations: 4 kB / 0.5072 GB, free: 3.133 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001528/0.1265, allocations: 172.5 kB / 0.5074 GB, free: 2.965 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1265, allocations: 0 / 0.5074 GB, free: 2.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002751/0.1268, allocations: 44 kB / 0.5074 GB, free: 2.922 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.778e-05/0.1269, allocations: 103.2 kB / 0.5075 GB, free: 2.812 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003476/0.1273, allocations: 143.9 kB / 0.5076 GB, free: 2.672 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1273, allocations: 0 / 0.5076 GB, free: 2.672 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.1274, allocations: 71.91 kB / 0.5077 GB, free: 2.602 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003797/0.1278, allocations: 40.36 kB / 0.5077 GB, free: 2.562 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.1289, allocations: 0.6596 MB / 0.5084 GB, free: 1.875 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003138/0.1293, allocations: 0.7478 MB / 0.5091 GB, free: 1.102 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.736e-05/0.1294, allocations: 13.95 kB / 0.5091 GB, free: 1.086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.717e-05/0.1294, allocations: 23.44 kB / 0.5092 GB, free: 1.062 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1294, allocations: 0 / 0.5092 GB, free: 1.062 MB / 398.1 MB Notification: Performance of Templates: time 0.004697/0.1341, allocations: 2.037 MB / 0.5111 GB, free: 15.02 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)