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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 114.3 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 219 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 207.6 MB / 231.8 MB, free: 4.043 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.4242/0.4242, allocations: 49.5 MB / 333.2 MB, free: 0.7578 MB / 254.1 MB " [Timeout remaining time 179] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003404/0.003404, allocations: 65.5 kB / 471.5 MB, free: 41.13 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1172, allocations: 62.35 MB / 0.5213 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.002699/0.1199, allocations: 2.307 MB / 0.5236 GB, free: 4 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.1211, allocations: 0.6591 MB / 0.5242 GB, free: 15.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.1212, allocations: 4 kB / 0.5242 GB, free: 15.33 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.1213, allocations: 35.59 kB / 0.5243 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002616/0.1216, allocations: 87.33 kB / 0.5244 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000174/0.1218, allocations: 59.86 kB / 0.5244 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003567/0.1221, allocations: 286.8 kB / 0.5247 GB, free: 14.87 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001595/0.1223, allocations: 53.33 kB / 0.5247 GB, free: 14.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001831/0.1225, allocations: 119.4 kB / 0.5248 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001878/0.1227, allocations: 115.5 kB / 0.525 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.491e-05/0.1227, allocations: 16 kB / 0.525 GB, free: 14.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.257e-05/0.1228, allocations: 31.98 kB / 0.525 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.32e-05/0.1228, allocations: 47.78 kB / 0.525 GB, free: 14.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.123, allocations: 123.3 kB / 0.5252 GB, free: 14.37 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003182/0.1233, allocations: 230.9 kB / 0.5254 GB, free: 14.14 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1233, allocations: 3.938 kB / 0.5254 GB, free: 14.14 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1233, allocations: 0 / 0.5254 GB, free: 14.14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.1233, allocations: 0 / 0.5254 GB, free: 14.14 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.001052/0.1243, allocations: 0.5683 MB / 0.5259 GB, free: 13.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.1244, allocations: 19.88 kB / 0.526 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.555e-05/0.1244, allocations: 4.188 kB / 0.526 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.196e-05/0.1245, allocations: 54.67 kB / 0.526 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.725e-05/0.1246, allocations: 28.8 kB / 0.526 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003906/0.1249, allocations: 270.9 kB / 0.5263 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.876e-05/0.125, allocations: 42.27 kB / 0.5263 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.439e-05/0.1251, allocations: 19.94 kB / 0.5264 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000366/0.1254, allocations: 175.1 kB / 0.5265 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.1254, allocations: 3.984 kB / 0.5265 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.016e-05/0.1255, allocations: 8 kB / 0.5265 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.1255, allocations: 4 kB / 0.5265 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003255/0.1258, allocations: 127.9 kB / 0.5267 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.1269, allocations: 0.6543 MB / 0.5273 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004001/0.1273, allocations: 150.4 kB / 0.5275 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001793/0.1274, allocations: 72.81 kB / 0.5275 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.1275, allocations: 4 kB / 0.5275 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.1275, allocations: 34.56 kB / 0.5276 GB, free: 11.72 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.273e-06/0.1275, allocations: 0 / 0.5276 GB, free: 11.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001257/0.1287, allocations: 0.5931 MB / 0.5281 GB, free: 11.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.017e-05/0.1288, allocations: 55.41 kB / 0.5282 GB, free: 11.01 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/0.129, allocations: 233 kB / 0.5284 GB, free: 10.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.1291, allocations: 25.7 kB / 0.5284 GB, free: 10.74 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.1292, allocations: 148.5 kB / 0.5286 GB, free: 10.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.995e-05/0.1292, allocations: 83.31 kB / 0.5287 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.743e-05/0.1293, allocations: 41.7 kB / 0.5287 GB, free: 10.46 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.1295, allocations: 338.7 kB / 0.529 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001556/0.1296, allocations: 59.95 kB / 0.5291 GB, free: 10.07 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.1298, allocations: 78.28 kB / 0.5292 GB, free: 9.984 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003084/0.1301, allocations: 141.5 kB / 0.5293 GB, free: 9.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1301, allocations: 4 kB / 0.5293 GB, free: 9.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004125/0.1305, allocations: 209.2 kB / 0.5295 GB, free: 9.625 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1305, allocations: 8 kB / 0.5295 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.1305, allocations: 0 / 0.5295 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.1306, allocations: 0 / 0.5295 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005005/0.1311, allocations: 79.92 kB / 0.5296 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.1311, allocations: 4 kB / 0.5296 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.1312, allocations: 11.98 kB / 0.5296 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.877e-05/0.1312, allocations: 11.94 kB / 0.5296 GB, free: 9.512 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.000129/0.1313, allocations: 125.8 kB / 0.5297 GB, free: 9.379 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.672e-05/0.1314, allocations: 31.84 kB / 0.5298 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.023e-05/0.1315, allocations: 30.17 kB / 0.5298 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1315, allocations: 4 kB / 0.5298 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1315, allocations: 3.938 kB / 0.5298 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1315, allocations: 0 / 0.5298 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008037/0.1323, allocations: 0.5374 MB / 0.5303 GB, free: 8.715 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1323, allocations: 0 / 0.5303 GB, free: 8.715 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004011/0.1327, allocations: 71.89 kB / 0.5304 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.1327, allocations: 4 kB / 0.5304 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.1327, allocations: 0 / 0.5304 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.1327, allocations: 3.938 kB / 0.5304 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1327, allocations: 0 / 0.5304 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006089/0.1333, allocations: 359.6 kB / 0.5307 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.1334, allocations: 113 kB / 0.5308 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.035e-05/0.1335, allocations: 3.938 kB / 0.5308 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.1336, allocations: 15.92 kB / 0.5309 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.119e-05/0.1337, allocations: 11.98 kB / 0.5309 GB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.1337, allocations: 8 kB / 0.5309 GB, free: 8.102 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002124/0.1339, allocations: 172.4 kB / 0.531 GB, free: 7.934 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1339, allocations: 0 / 0.531 GB, free: 7.934 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002894/0.1342, allocations: 44 kB / 0.5311 GB, free: 7.891 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.0009094/0.1351, allocations: 0.8763 MB / 0.5319 GB, free: 6.988 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003861/0.1355, allocations: 139.9 kB / 0.5321 GB, free: 6.852 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1355, allocations: 4.062 kB / 0.5321 GB, free: 6.848 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.1357, allocations: 75.89 kB / 0.5321 GB, free: 6.773 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004096/0.1361, allocations: 40.98 kB / 0.5322 GB, free: 6.734 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003651/0.1397, allocations: 2.616 MB / 0.5347 GB, free: 4.031 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/0.1401, allocations: 0.7478 MB / 0.5355 GB, free: 3.258 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001004/0.1402, allocations: 29.92 kB / 0.5355 GB, free: 3.227 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.1403, allocations: 75.41 kB / 0.5356 GB, free: 3.152 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1404, allocations: 0 / 0.5356 GB, free: 3.152 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02371/0.1641, allocations: 4.599 MB / 0.5401 GB, free: 14.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.672/8.836, allocations: 15.8 kB / 0.5401 GB, free: 14.49 MB / 414.1 MB " [Timeout remaining time 651] (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 --stepSize=0.002 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.908674629055895] Failed to read output from testmodel.py, exit status != 0: 8.964151079999283 8.978487799 8.852190848 Calling exit ...