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/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.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",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.001722/0.001722, allocations: 113 kB / 17.07 MB, free: 6.008 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.001904/0.001904, allocations: 189.4 kB / 18 MB, free: 5.09 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.48/1.48, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2829/0.2829, 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.002113/0.002113, allocations: 68.47 kB / 450 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1054, allocations: 59.17 MB / 0.4972 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003562/0.109, allocations: 2.281 MB / 0.4995 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.1102, allocations: 0.6591 MB / 0.5001 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.1103, allocations: 0 / 0.5001 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.1105, allocations: 31.66 kB / 0.5001 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000239/0.1108, allocations: 87.27 kB / 0.5002 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000165/0.1109, allocations: 51.92 kB / 0.5003 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003779/0.1113, allocations: 274.8 kB / 0.5005 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/0.1115, allocations: 72.59 kB / 0.5006 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001643/0.1117, allocations: 111.5 kB / 0.5007 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000194/0.1119, allocations: 107.4 kB / 0.5008 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.966e-05/0.1119, allocations: 20 kB / 0.5008 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.34e-05/0.112, allocations: 24 kB / 0.5009 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.378e-05/0.112, allocations: 51.75 kB / 0.5009 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.1122, allocations: 115.3 kB / 0.501 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000359/0.1125, allocations: 230.8 kB / 0.5012 GB, free: 9.652 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1126, allocations: 0 / 0.5012 GB, free: 9.652 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1126, allocations: 0 / 0.5012 GB, free: 9.652 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1126, allocations: 0 / 0.5012 GB, free: 9.652 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0009053/0.1135, allocations: 0.5605 MB / 0.5018 GB, free: 9.043 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.1135, allocations: 11.89 kB / 0.5018 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.126e-05/0.1136, allocations: 50.73 kB / 0.5019 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.982e-05/0.1137, allocations: 28.75 kB / 0.5019 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.1141, allocations: 270.9 kB / 0.5021 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.1141, allocations: 16.38 kB / 0.5022 GB, free: 8.629 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.516e-05/0.1141, allocations: 20.31 kB / 0.5022 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003412/0.1145, allocations: 179.1 kB / 0.5023 GB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.1145, allocations: 0 / 0.5023 GB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.864e-05/0.1145, allocations: 8 kB / 0.5024 GB, free: 8.414 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.054e-06/0.1145, allocations: 4 kB / 0.5024 GB, free: 8.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002948/0.1148, allocations: 119.9 kB / 0.5025 GB, free: 8.293 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.1159, allocations: 0.6464 MB / 0.5031 GB, free: 7.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002649/0.1162, allocations: 134.5 kB / 0.5032 GB, free: 7.445 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000165/0.1163, allocations: 80.86 kB / 0.5033 GB, free: 7.363 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.1164, allocations: 4 kB / 0.5033 GB, free: 7.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.1164, allocations: 34.5 kB / 0.5033 GB, free: 7.316 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.362e-06/0.1164, allocations: 0 / 0.5033 GB, free: 7.316 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.00129/0.1177, allocations: 0.5526 MB / 0.5039 GB, free: 6.711 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.69e-05/0.1178, allocations: 55.41 kB / 0.5039 GB, free: 6.645 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003369/0.1181, allocations: 229 kB / 0.5042 GB, free: 6.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.1182, allocations: 29.7 kB / 0.5042 GB, free: 6.375 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.1183, allocations: 152.4 kB / 0.5043 GB, free: 6.223 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.865e-05/0.1184, allocations: 71.38 kB / 0.5044 GB, free: 6.152 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.949e-05/0.1184, allocations: 45.7 kB / 0.5044 GB, free: 6.102 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.1186, allocations: 334.8 kB / 0.5048 GB, free: 5.766 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.1188, allocations: 51.97 kB / 0.5048 GB, free: 5.715 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.1189, allocations: 73.69 kB / 0.5049 GB, free: 5.637 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002856/0.1192, allocations: 141.9 kB / 0.505 GB, free: 5.492 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.1192, allocations: 4 kB / 0.505 GB, free: 5.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003656/0.1196, allocations: 189.4 kB / 0.5052 GB, free: 5.297 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.1196, allocations: 7.938 kB / 0.5052 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.1196, allocations: 0 / 0.5052 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.1197, allocations: 4 kB / 0.5052 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003948/0.1201, allocations: 71.89 kB / 0.5053 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/0.1215, allocations: 1.433 MB / 0.5067 GB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001366/0.1216, allocations: 12.02 kB / 0.5067 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.81e-05/0.1217, allocations: 4 kB / 0.5067 GB, free: 3.621 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: 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.000125/0.1218, allocations: 137.7 kB / 0.5068 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.03e-05/0.1218, allocations: 23.81 kB / 0.5068 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003888/0.1222, allocations: 195.7 kB / 0.507 GB, free: 3.254 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.1222, allocations: 0 / 0.507 GB, free: 3.254 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.1223, allocations: 4 kB / 0.507 GB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.1223, allocations: 3.984 kB / 0.507 GB, free: 3.246 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008051/0.1231, allocations: 0.5179 MB / 0.5075 GB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.1231, allocations: 4 kB / 0.5075 GB, free: 2.668 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002296/0.1233, allocations: 43.92 kB / 0.5076 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.1233, allocations: 3.984 kB / 0.5076 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.1234, allocations: 11.98 kB / 0.5076 GB, free: 2.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1234, allocations: 0 / 0.5076 GB, free: 2.609 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.1234, allocations: 3.984 kB / 0.5076 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005497/0.1239, allocations: 359.3 kB / 0.508 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.124, allocations: 105 kB / 0.5081 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.178e-05/0.1241, allocations: 4 kB / 0.5081 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.1242, allocations: 15.92 kB / 0.5081 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.129e-05/0.1243, allocations: 15.98 kB / 0.5081 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.1243, allocations: 4 kB / 0.5081 GB, free: 2.078 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001752/0.1245, allocations: 168.5 kB / 0.5083 GB, free: 1.914 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1245, allocations: 0 / 0.5083 GB, free: 1.914 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002898/0.1248, allocations: 48 kB / 0.5083 GB, free: 1.867 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: 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 0.0009333/0.1257, allocations: 0.8723 MB / 0.5092 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005219/0.1263, allocations: 169.2 kB / 0.5093 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.1263, allocations: 4 kB / 0.5093 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.1265, allocations: 71.91 kB / 0.5094 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003584/0.1268, allocations: 37.05 kB / 0.5094 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003656/0.1305, allocations: 2.564 MB / 0.5119 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006994/0.1312, allocations: 0.7521 MB / 0.5127 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.66e-05/0.1313, allocations: 29.52 kB / 0.5127 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.1314, allocations: 79.41 kB / 0.5128 GB, free: 13.16 MB / 414.1 MB Notification: Performance of SimCode: time 2.074e-06/0.1315, allocations: 0 / 0.5128 GB, free: 13.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02875/0.1602, allocations: 4.95 MB / 0.5176 GB, free: 8.156 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.007/8.167, allocations: 7.891 kB / 0.5176 GB, free: 8.148 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)