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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001061/0.001061, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.235/1.235, allocations: 205.1 MB / 223.1 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001/0.0009999, allocations: 101.5 kB / 270.5 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3681/0.3681, allocations: 48.83 MB / 366.7 MB, free: 46.56 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001078/0.001078, allocations: 59.86 kB / 436.6 MB, free: 11.42 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09581/0.09691, allocations: 59.15 MB / 495.8 MB, free: 136 kB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003202/0.1001, allocations: 2.449 MB / 498.2 MB, free: 13.66 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009715/0.1011, allocations: 0.6707 MB / 498.9 MB, free: 12.98 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.1013, allocations: 4 kB / 498.9 MB, free: 12.98 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.1014, allocations: 19.78 kB / 498.9 MB, free: 12.96 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001974/0.1016, allocations: 75.45 kB / 499 MB, free: 12.89 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001488/0.1018, allocations: 51.95 kB / 499 MB, free: 12.84 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002526/0.102, allocations: 262.8 kB / 499.3 MB, free: 12.58 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.1022, allocations: 60.7 kB / 499.3 MB, free: 12.52 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.1023, allocations: 107.5 kB / 499.4 MB, free: 12.41 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.1025, allocations: 107.4 kB / 499.5 MB, free: 12.3 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 3.019e-05/0.1025, allocations: 12 kB / 499.6 MB, free: 12.29 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.205e-05/0.1026, allocations: 16 kB / 499.6 MB, free: 12.28 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 4e-05/0.1026, allocations: 35.78 kB / 499.6 MB, free: 12.24 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.1027, allocations: 123.2 kB / 499.7 MB, free: 12.12 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002148/0.103, allocations: 211.4 kB / 499.9 MB, free: 11.91 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.103, allocations: 0 / 499.9 MB, free: 11.91 MB / 394.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.103, allocations: 4 kB / 499.9 MB, free: 11.91 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.103, allocations: 4 kB / 499.9 MB, free: 11.91 MB / 394.7 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.0007876/0.1038, allocations: 0.5489 MB / 0.4888 GB, free: 11.31 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.1038, allocations: 8.031 kB / 0.4888 GB, free: 11.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.8e-05/0.1039, allocations: 36.5 kB / 0.4888 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.1042, allocations: 266.8 kB / 0.4891 GB, free: 10.97 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.1042, allocations: 12.38 kB / 0.4891 GB, free: 10.96 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.334e-05/0.1042, allocations: 16.38 kB / 0.4891 GB, free: 10.94 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002932/0.1045, allocations: 175.6 kB / 0.4893 GB, free: 10.76 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1046, allocations: 0 / 0.4893 GB, free: 10.76 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.1046, allocations: 8 kB / 0.4893 GB, free: 10.75 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.1046, allocations: 4 kB / 0.4893 GB, free: 10.75 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002655/0.1049, allocations: 119.8 kB / 0.4894 GB, free: 10.63 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008614/0.1057, allocations: 0.654 MB / 0.49 GB, free: 9.914 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002364/0.106, allocations: 142.5 kB / 0.4902 GB, free: 9.766 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.1061, allocations: 72.83 kB / 0.4902 GB, free: 9.691 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.1062, allocations: 4 kB / 0.4902 GB, free: 9.688 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.983e-05/0.1062, allocations: 34.88 kB / 0.4903 GB, free: 9.645 MB / 394.7 MB Notification: Performance of pre-optimization done (n=17): time 1.282e-06/0.1062, allocations: 0 / 0.4903 GB, free: 9.645 MB / 394.7 MB Notification: Performance of matching and sorting (n=18): time 0.0009525/0.1072, allocations: 0.5518 MB / 0.4908 GB, free: 9.039 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.709e-05/0.1072, allocations: 55.41 kB / 0.4908 GB, free: 8.973 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000203/0.1074, allocations: 237 kB / 0.4911 GB, free: 8.73 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.1074, allocations: 25.7 kB / 0.4911 GB, free: 8.699 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.132e-05/0.1075, allocations: 152.3 kB / 0.4912 GB, free: 8.547 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.162e-05/0.1076, allocations: 63.09 kB / 0.4913 GB, free: 8.484 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-05/0.1076, allocations: 37.62 kB / 0.4913 GB, free: 8.441 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.816e-05/0.1077, allocations: 338.8 kB / 0.4917 GB, free: 8.102 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.1079, allocations: 51.97 kB / 0.4917 GB, free: 8.051 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.108, allocations: 77.67 kB / 0.4918 GB, free: 7.969 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/0.1082, allocations: 133.9 kB / 0.4919 GB, free: 7.832 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.1083, allocations: 0 / 0.4919 GB, free: 7.832 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003231/0.1086, allocations: 193.2 kB / 0.4921 GB, free: 7.637 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.1086, allocations: 4 kB / 0.4921 GB, free: 7.633 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.1086, allocations: 11.97 kB / 0.4921 GB, free: 7.621 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.1086, allocations: 0 / 0.4921 GB, free: 7.621 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004259/0.1091, allocations: 67.95 kB / 0.4922 GB, free: 7.555 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009347/0.11, allocations: 1.342 MB / 0.4935 GB, free: 6.078 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000136/0.1102, allocations: 15.97 kB / 0.4935 GB, free: 6.062 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.1102, allocations: 4 kB / 0.4935 GB, free: 6.059 MB / 394.7 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.0001061/0.1103, allocations: 126.5 kB / 0.4936 GB, free: 5.926 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.168e-05/0.1103, allocations: 23.78 kB / 0.4937 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003335/0.1107, allocations: 195.7 kB / 0.4938 GB, free: 5.699 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1107, allocations: 4 kB / 0.4938 GB, free: 5.695 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.1107, allocations: 3.984 kB / 0.4938 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.1107, allocations: 3.938 kB / 0.4939 GB, free: 5.688 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006574/0.1114, allocations: 0.5141 MB / 0.4944 GB, free: 5.117 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1114, allocations: 0 / 0.4944 GB, free: 5.117 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002261/0.1116, allocations: 51.91 kB / 0.4944 GB, free: 5.066 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1116, allocations: 0 / 0.4944 GB, free: 5.066 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.1117, allocations: 7.938 kB / 0.4944 GB, free: 5.059 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1117, allocations: 0 / 0.4944 GB, free: 5.059 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1117, allocations: 0 / 0.4944 GB, free: 5.059 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002909/0.1146, allocations: 2.112 MB / 0.4965 GB, free: 2.805 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.911e-05/0.1147, allocations: 112.8 kB / 0.4966 GB, free: 2.676 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.1147, allocations: 0 / 0.4966 GB, free: 2.676 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/0.1149, allocations: 11.98 kB / 0.4966 GB, free: 2.664 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.793e-05/0.1149, allocations: 15.98 kB / 0.4966 GB, free: 2.648 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.115, allocations: 4 kB / 0.4966 GB, free: 2.645 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001432/0.1151, allocations: 168.5 kB / 0.4968 GB, free: 2.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1151, allocations: 0 / 0.4968 GB, free: 2.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003735/0.1155, allocations: 72 kB / 0.4968 GB, free: 2.41 MB / 394.7 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 9.683e-05/0.1156, allocations: 99.17 kB / 0.4969 GB, free: 2.301 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005478/0.1162, allocations: 167.8 kB / 0.4971 GB, free: 2.137 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1162, allocations: 0 / 0.4971 GB, free: 2.137 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.1163, allocations: 75.89 kB / 0.4972 GB, free: 2.062 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003616/0.1167, allocations: 40.36 kB / 0.4972 GB, free: 2.023 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.118, allocations: 0.9217 MB / 0.4981 GB, free: 1.062 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.1183, allocations: 0.7563 MB / 0.4988 GB, free: 284 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001172/0.1184, allocations: 34.52 kB / 0.4989 GB, free: 252 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.54e-05/0.1185, allocations: 31.36 kB / 0.4989 GB, free: 220 kB / 394.7 MB Notification: Performance of SimCode: time 3.2e-07/0.1185, allocations: 0 / 0.4989 GB, free: 220 kB / 394.7 MB Notification: Performance of Templates: time 0.1545/0.273, allocations: 2.647 MB / 0.5015 GB, free: 58.38 MB / 394.7 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)