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: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 109 kB / 17.06 MB, free: 6.02 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.001403/0.001403, allocations: 189.4 kB / 18 MB, free: 5.102 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.508/1.508, 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.2935/0.2935, allocations: 48.85 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.002106/0.002106, allocations: 75.88 kB / 450 MB, free: 9.062 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1055, allocations: 59.15 MB / 0.4972 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003508/0.109, allocations: 2.292 MB / 0.4995 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.1102, allocations: 0.6436 MB / 0.5001 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.1104, allocations: 4 kB / 0.5001 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.1105, allocations: 31.66 kB / 0.5001 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002428/0.1107, allocations: 95.25 kB / 0.5002 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001653/0.1109, allocations: 51.94 kB / 0.5003 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000342/0.1113, allocations: 286.7 kB / 0.5006 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.1115, allocations: 85.28 kB / 0.5006 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001602/0.1116, allocations: 107.5 kB / 0.5007 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002039/0.1118, allocations: 115.5 kB / 0.5009 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.038e-05/0.1119, allocations: 20 kB / 0.5009 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.473e-05/0.112, allocations: 24 kB / 0.5009 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.749e-05/0.112, allocations: 51.7 kB / 0.5009 GB, free: 9.957 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.1122, allocations: 115.3 kB / 0.5011 GB, free: 9.844 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003198/0.1125, allocations: 242.8 kB / 0.5013 GB, free: 9.605 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1125, allocations: 0 / 0.5013 GB, free: 9.605 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1125, allocations: 4 kB / 0.5013 GB, free: 9.602 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.1125, allocations: 4 kB / 0.5013 GB, free: 9.598 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.0009411/0.1135, allocations: 0.5682 MB / 0.5018 GB, free: 8.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.1135, allocations: 11.89 kB / 0.5019 GB, free: 8.969 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.286e-05/0.1136, allocations: 50.73 kB / 0.5019 GB, free: 8.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.583e-05/0.1137, allocations: 28.8 kB / 0.5019 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003805/0.1141, allocations: 270.9 kB / 0.5022 GB, free: 8.578 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.56e-05/0.1141, allocations: 46.2 kB / 0.5022 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.111e-05/0.1142, allocations: 20.12 kB / 0.5023 GB, free: 8.508 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003516/0.1146, allocations: 179.1 kB / 0.5024 GB, free: 8.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.1146, allocations: 7.938 kB / 0.5024 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.1146, allocations: 4 kB / 0.5024 GB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.1146, allocations: 4 kB / 0.5024 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003179/0.1149, allocations: 123.9 kB / 0.5026 GB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.116, allocations: 0.6696 MB / 0.5032 GB, free: 7.453 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003708/0.1164, allocations: 150.4 kB / 0.5034 GB, free: 7.297 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001735/0.1166, allocations: 80.83 kB / 0.5034 GB, free: 7.215 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.35e-05/0.1166, allocations: 0 / 0.5034 GB, free: 7.215 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.1166, allocations: 42.5 kB / 0.5035 GB, free: 7.164 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.123e-06/0.1166, allocations: 0 / 0.5035 GB, free: 7.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001189/0.1178, allocations: 0.5799 MB / 0.504 GB, free: 6.531 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.705e-05/0.1179, allocations: 55.39 kB / 0.5041 GB, free: 6.465 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002515/0.1181, allocations: 237 kB / 0.5043 GB, free: 6.227 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.1182, allocations: 33.7 kB / 0.5044 GB, free: 6.188 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1183, allocations: 148.5 kB / 0.5045 GB, free: 6.039 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.592e-05/0.1183, allocations: 67.38 kB / 0.5046 GB, free: 5.973 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.802e-05/0.1184, allocations: 45.7 kB / 0.5046 GB, free: 5.922 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1186, allocations: 338.8 kB / 0.5049 GB, free: 5.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/0.1187, allocations: 51.97 kB / 0.505 GB, free: 5.531 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.1189, allocations: 86.55 kB / 0.5051 GB, free: 5.441 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000303/0.1192, allocations: 145.5 kB / 0.5052 GB, free: 5.293 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.1192, allocations: 0 / 0.5052 GB, free: 5.293 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004043/0.1197, allocations: 205.4 kB / 0.5054 GB, free: 5.086 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.1197, allocations: 4 kB / 0.5054 GB, free: 5.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.1197, allocations: 0 / 0.5054 GB, free: 5.082 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.1197, allocations: 4 kB / 0.5054 GB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004373/0.1202, allocations: 79.89 kB / 0.5055 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.1202, allocations: 0 / 0.5055 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001301/0.1203, allocations: 7.984 kB / 0.5055 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.1203, allocations: 16.03 kB / 0.5055 GB, free: 4.977 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.0001233/0.1205, allocations: 138.2 kB / 0.5056 GB, free: 4.832 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.007e-05/0.1205, allocations: 23.84 kB / 0.5057 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.542e-05/0.1206, allocations: 38.11 kB / 0.5057 GB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1206, allocations: 0 / 0.5057 GB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1206, allocations: 4 kB / 0.5057 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.1206, allocations: 4 kB / 0.5057 GB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008024/0.1214, allocations: 0.5451 MB / 0.5062 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1215, allocations: 0 / 0.5062 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000393/0.1219, allocations: 59.95 kB / 0.5063 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1219, allocations: 3.938 kB / 0.5063 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.1219, allocations: 8 kB / 0.5063 GB, free: 4.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.1219, allocations: 3.938 kB / 0.5063 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1219, allocations: 0 / 0.5063 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005867/0.1225, allocations: 359.5 kB / 0.5066 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.1226, allocations: 109 kB / 0.5068 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.285e-05/0.1226, allocations: 4 kB / 0.5068 GB, free: 3.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.1228, allocations: 15.92 kB / 0.5068 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.242e-05/0.1229, allocations: 11.98 kB / 0.5068 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.1229, allocations: 4 kB / 0.5068 GB, free: 3.559 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001768/0.1231, allocations: 176.5 kB / 0.507 GB, free: 3.387 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1231, allocations: 0 / 0.507 GB, free: 3.387 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002762/0.1234, allocations: 44 kB / 0.507 GB, free: 3.344 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 0.0008813/0.1242, allocations: 0.8802 MB / 0.5079 GB, free: 2.438 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003589/0.1246, allocations: 143.8 kB / 0.508 GB, free: 2.297 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1246, allocations: 0 / 0.508 GB, free: 2.297 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001713/0.1248, allocations: 75.91 kB / 0.5081 GB, free: 2.223 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003773/0.1252, allocations: 40.34 kB / 0.5081 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003491/0.1287, allocations: 2.617 MB / 0.5107 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.1291, allocations: 0.7517 MB / 0.5114 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.433e-05/0.1292, allocations: 25.94 kB / 0.5114 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.1293, allocations: 75.41 kB / 0.5115 GB, free: 14.6 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1293, allocations: 0 / 0.5115 GB, free: 14.6 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02794/0.1573, allocations: 4.526 MB / 0.5159 GB, free: 10.03 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.055/8.213, allocations: 7.953 kB / 0.5159 GB, free: 10.02 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)