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.001203/0.001203, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.001499/0.001499, allocations: 175.1 kB / 18.66 MB, free: 4.449 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.32/1.32, allocations: 205.1 MB / 224.5 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.2628/0.2628, allocations: 48.84 MB / 320.7 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.001391/0.001391, allocations: 67.89 kB / 451.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1058, allocations: 59.15 MB / 0.4984 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.00326/0.1091, allocations: 2.292 MB / 0.5006 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001217/0.1104, allocations: 0.6475 MB / 0.5013 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.1106, allocations: 7.938 kB / 0.5013 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.1107, allocations: 31.66 kB / 0.5013 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002618/0.111, allocations: 87.25 kB / 0.5014 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001812/0.1112, allocations: 55.92 kB / 0.5014 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003282/0.1115, allocations: 282.8 kB / 0.5017 GB, free: 9.863 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.1117, allocations: 77.23 kB / 0.5018 GB, free: 9.785 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/0.1119, allocations: 115.5 kB / 0.5019 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.1121, allocations: 115.5 kB / 0.502 GB, free: 9.559 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.987e-05/0.1121, allocations: 24 kB / 0.502 GB, free: 9.535 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.979e-05/0.1122, allocations: 24 kB / 0.502 GB, free: 9.512 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.924e-05/0.1123, allocations: 55.7 kB / 0.5021 GB, free: 9.457 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.1124, allocations: 119.3 kB / 0.5022 GB, free: 9.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002896/0.1127, allocations: 227.1 kB / 0.5024 GB, free: 9.117 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1127, allocations: 4 kB / 0.5024 GB, free: 9.113 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.1127, allocations: 0 / 0.5024 GB, free: 9.113 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.651e-05/0.1127, allocations: 3.938 kB / 0.5024 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.0008983/0.1136, allocations: 0.5607 MB / 0.503 GB, free: 8.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.1137, allocations: 11.89 kB / 0.503 GB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.1138, allocations: 36.55 kB / 0.503 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.1141, allocations: 262.8 kB / 0.5033 GB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.455e-05/0.1142, allocations: 42.27 kB / 0.5033 GB, free: 8.109 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.572e-05/0.1143, allocations: 24.31 kB / 0.5033 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003178/0.1146, allocations: 179 kB / 0.5035 GB, free: 7.898 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.1146, allocations: 7.984 kB / 0.5035 GB, free: 7.891 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.1146, allocations: 4 kB / 0.5035 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.1146, allocations: 7.984 kB / 0.5035 GB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002874/0.1149, allocations: 119.9 kB / 0.5036 GB, free: 7.762 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009556/0.1159, allocations: 0.6656 MB / 0.5043 GB, free: 7.035 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000354/0.1163, allocations: 150.5 kB / 0.5044 GB, free: 6.879 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.1164, allocations: 92.72 kB / 0.5045 GB, free: 6.785 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.1165, allocations: 3.938 kB / 0.5045 GB, free: 6.781 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.085e-05/0.1165, allocations: 34.56 kB / 0.5046 GB, free: 6.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.433e-06/0.1165, allocations: 0 / 0.5046 GB, free: 6.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001093/0.1176, allocations: 0.5756 MB / 0.5051 GB, free: 6.109 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.1176, allocations: 55.41 kB / 0.5052 GB, free: 6.043 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002213/0.1179, allocations: 233 kB / 0.5054 GB, free: 5.809 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.1179, allocations: 37.64 kB / 0.5054 GB, free: 5.766 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.059e-05/0.118, allocations: 144.3 kB / 0.5056 GB, free: 5.621 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.09e-05/0.118, allocations: 70.98 kB / 0.5056 GB, free: 5.551 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.487e-05/0.1181, allocations: 45.7 kB / 0.5057 GB, free: 5.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.1182, allocations: 334.8 kB / 0.506 GB, free: 5.164 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.1184, allocations: 59.95 kB / 0.5061 GB, free: 5.105 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.1185, allocations: 75.22 kB / 0.5061 GB, free: 5.027 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002646/0.1188, allocations: 145.5 kB / 0.5063 GB, free: 4.879 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.91e-07/0.1188, allocations: 0 / 0.5063 GB, free: 4.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003679/0.1192, allocations: 213.2 kB / 0.5065 GB, free: 4.664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.1192, allocations: 4 kB / 0.5065 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.1192, allocations: 0 / 0.5065 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.1192, allocations: 0 / 0.5065 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004127/0.1197, allocations: 83.92 kB / 0.5066 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.1197, allocations: 0 / 0.5066 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.1198, allocations: 11.98 kB / 0.5066 GB, free: 4.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.1198, allocations: 4 kB / 0.5066 GB, free: 4.562 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.0001093/0.12, allocations: 141.7 kB / 0.5067 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.415e-05/0.12, allocations: 19.72 kB / 0.5067 GB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.948e-05/0.1201, allocations: 30.17 kB / 0.5068 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.1201, allocations: 7.938 kB / 0.5068 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.1201, allocations: 0 / 0.5068 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.1201, allocations: 0 / 0.5068 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006972/0.1208, allocations: 0.5413 MB / 0.5073 GB, free: 3.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.1208, allocations: 0 / 0.5073 GB, free: 3.758 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003655/0.1212, allocations: 67.89 kB / 0.5074 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.1212, allocations: 0 / 0.5074 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.1212, allocations: 4 kB / 0.5074 GB, free: 3.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.1212, allocations: 4 kB / 0.5074 GB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.1212, allocations: 7.875 kB / 0.5074 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005012/0.1217, allocations: 347.5 kB / 0.5077 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.157e-05/0.1218, allocations: 112.8 kB / 0.5078 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/0.1219, allocations: 0 / 0.5078 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.122, allocations: 15.98 kB / 0.5078 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.795e-05/0.1221, allocations: 27.94 kB / 0.5078 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.1221, allocations: 4 kB / 0.5079 GB, free: 3.145 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001369/0.1223, allocations: 168.5 kB / 0.508 GB, free: 2.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1223, allocations: 0 / 0.508 GB, free: 2.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002681/0.1225, allocations: 48 kB / 0.5081 GB, free: 2.934 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 8.926e-05/0.1226, allocations: 95.25 kB / 0.5081 GB, free: 2.832 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003264/0.123, allocations: 147.9 kB / 0.5083 GB, free: 2.688 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.123, allocations: 0 / 0.5083 GB, free: 2.688 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.1231, allocations: 71.91 kB / 0.5084 GB, free: 2.617 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.1235, allocations: 36.41 kB / 0.5084 GB, free: 2.582 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.1246, allocations: 0.6886 MB / 0.5091 GB, free: 1.859 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.1249, allocations: 0.7478 MB / 0.5098 GB, free: 1.086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.583e-05/0.125, allocations: 23.38 kB / 0.5098 GB, free: 1.062 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.125, allocations: 0 / 0.5098 GB, free: 1.062 MB / 398.1 MB Notification: Performance of Templates: time 0.004554/0.1295, allocations: 2.607 MB / 0.5124 GB, free: 14.45 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)