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.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.001292/0.001292, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001447/0.001447, allocations: 214.7 kB / 23.74 MB, free: 4.656 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.314/1.314, allocations: 207.6 MB / 234.5 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 179] 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.2772/0.2772, allocations: 49.57 MB / 336.3 MB, free: 4.109 MB / 270.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.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"}) [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.002164/0.002164, allocations: 67.91 kB / 476.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1158, allocations: 62.44 MB / 0.5261 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003578/0.1194, allocations: 2.305 MB / 0.5284 GB, free: 11.99 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.1205, allocations: 0.6593 MB / 0.529 GB, free: 11.32 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.1206, allocations: 7.938 kB / 0.529 GB, free: 11.31 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001329/0.1208, allocations: 27.66 kB / 0.5291 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002828/0.1211, allocations: 91.27 kB / 0.5291 GB, free: 11.2 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001625/0.1212, allocations: 51.94 kB / 0.5292 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003303/0.1215, allocations: 282.7 kB / 0.5295 GB, free: 10.87 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.1217, allocations: 49.12 kB / 0.5295 GB, free: 10.82 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000173/0.1219, allocations: 115.5 kB / 0.5296 GB, free: 10.71 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001875/0.1221, allocations: 115.4 kB / 0.5297 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.982e-05/0.1221, allocations: 16 kB / 0.5297 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.393e-05/0.1222, allocations: 20 kB / 0.5298 GB, free: 10.56 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.123e-05/0.1222, allocations: 47.83 kB / 0.5298 GB, free: 10.51 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.1223, allocations: 119.3 kB / 0.5299 GB, free: 10.39 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003082/0.1226, allocations: 219 kB / 0.5301 GB, free: 10.18 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1226, allocations: 7.938 kB / 0.5301 GB, free: 10.17 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1226, allocations: 0 / 0.5301 GB, free: 10.17 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.1226, allocations: 0 / 0.5301 GB, free: 10.17 MB / 414.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.0009783/0.1236, allocations: 0.493 MB / 0.5306 GB, free: 9.648 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.1237, allocations: 8.031 kB / 0.5306 GB, free: 9.641 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.233e-05/0.1237, allocations: 50.73 kB / 0.5307 GB, free: 9.582 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.96e-05/0.1238, allocations: 32.75 kB / 0.5307 GB, free: 9.551 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003609/0.1242, allocations: 205.1 kB / 0.5309 GB, free: 9.328 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.1242, allocations: 12.38 kB / 0.5309 GB, free: 9.316 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.538e-05/0.1242, allocations: 20.31 kB / 0.5309 GB, free: 9.297 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003279/0.1246, allocations: 175.2 kB / 0.5311 GB, free: 9.113 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.1246, allocations: 4 kB / 0.5311 GB, free: 9.109 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.683e-05/0.1246, allocations: 8 kB / 0.5311 GB, free: 9.102 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1246, allocations: 4 kB / 0.5311 GB, free: 9.098 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002668/0.1249, allocations: 111.9 kB / 0.5312 GB, free: 8.988 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009816/0.1259, allocations: 0.5969 MB / 0.5318 GB, free: 8.344 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002699/0.1261, allocations: 130.4 kB / 0.5319 GB, free: 8.207 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.1263, allocations: 68.83 kB / 0.532 GB, free: 8.137 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.1263, allocations: 4 kB / 0.532 GB, free: 8.133 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.1263, allocations: 38.55 kB / 0.532 GB, free: 8.086 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.192e-06/0.1263, allocations: 4 kB / 0.532 GB, free: 8.082 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001058/0.1274, allocations: 485.3 kB / 0.5325 GB, free: 7.574 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.326e-05/0.1274, allocations: 63.25 kB / 0.5326 GB, free: 7.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002576/0.1277, allocations: 229.1 kB / 0.5328 GB, free: 7.262 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.1277, allocations: 33.7 kB / 0.5328 GB, free: 7.223 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.1278, allocations: 148.5 kB / 0.533 GB, free: 7.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.978e-05/0.1279, allocations: 79.36 kB / 0.533 GB, free: 6.992 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.202e-05/0.1279, allocations: 33.72 kB / 0.5331 GB, free: 6.953 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.1281, allocations: 334.8 kB / 0.5334 GB, free: 6.617 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.1282, allocations: 51.97 kB / 0.5334 GB, free: 6.566 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.1284, allocations: 85.61 kB / 0.5335 GB, free: 6.477 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002648/0.1286, allocations: 130 kB / 0.5336 GB, free: 6.344 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-07/0.1286, allocations: 0 / 0.5336 GB, free: 6.344 MB / 414.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003533/0.129, allocations: 197.3 kB / 0.5338 GB, free: 6.145 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.129, allocations: 4 kB / 0.5338 GB, free: 6.141 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.129, allocations: 4 kB / 0.5338 GB, free: 6.137 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.129, allocations: 4.031 kB / 0.5338 GB, free: 6.133 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003694/0.1294, allocations: 63.95 kB / 0.5339 GB, free: 6.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.1306, allocations: 1.342 MB / 0.5352 GB, free: 4.613 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.1307, allocations: 8 kB / 0.5352 GB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.1307, allocations: 4 kB / 0.5352 GB, free: 4.602 MB / 414.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.0001339/0.1308, allocations: 129.8 kB / 0.5353 GB, free: 4.465 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.932e-05/0.1309, allocations: 27.98 kB / 0.5354 GB, free: 4.438 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003529/0.1312, allocations: 195.5 kB / 0.5356 GB, free: 4.238 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1312, allocations: 4 kB / 0.5356 GB, free: 4.234 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-06/0.1312, allocations: 0 / 0.5356 GB, free: 4.234 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1312, allocations: 0 / 0.5356 GB, free: 4.234 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007385/0.132, allocations: 0.4974 MB / 0.536 GB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.132, allocations: 0 / 0.536 GB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002196/0.1322, allocations: 47.97 kB / 0.5361 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.1322, allocations: 4 kB / 0.5361 GB, free: 3.637 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.1322, allocations: 0 / 0.5361 GB, free: 3.637 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.1322, allocations: 3.938 kB / 0.5361 GB, free: 3.633 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1322, allocations: 0 / 0.5361 GB, free: 3.633 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005038/0.1327, allocations: 351 kB / 0.5364 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.181e-05/0.1328, allocations: 35.89 kB / 0.5365 GB, free: 3.238 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.084e-05/0.1328, allocations: 11.98 kB / 0.5365 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.133, allocations: 11.94 kB / 0.5365 GB, free: 3.215 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.16e-05/0.133, allocations: 15.97 kB / 0.5365 GB, free: 3.199 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.133, allocations: 4 kB / 0.5365 GB, free: 3.195 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001581/0.1332, allocations: 164.5 kB / 0.5367 GB, free: 3.035 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1332, allocations: 0 / 0.5367 GB, free: 3.035 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002741/0.1335, allocations: 48 kB / 0.5367 GB, free: 2.988 MB / 414.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.0007862/0.1343, allocations: 0.8728 MB / 0.5376 GB, free: 2.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005123/0.1348, allocations: 167.9 kB / 0.5377 GB, free: 1.926 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1348, allocations: 0 / 0.5377 GB, free: 1.926 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001376/0.1349, allocations: 67.91 kB / 0.5378 GB, free: 1.859 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.1353, allocations: 36.41 kB / 0.5378 GB, free: 1.824 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1945/0.3297, allocations: 2.566 MB / 0.5403 GB, free: 21.74 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001973/0.3299, allocations: 0.7543 MB / 0.5411 GB, free: 21.04 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001291/0.3301, allocations: 28.19 kB / 0.5411 GB, free: 21.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.3302, allocations: 79.33 kB / 0.5412 GB, free: 21.04 MB / 414.1 MB Notification: Performance of SimCode: time 9.61e-07/0.3302, allocations: 1.5 kB / 0.5412 GB, free: 21.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03409/0.3643, allocations: 5.255 MB / 0.5463 GB, free: 20.31 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.58, allocations: 10.19 kB / 0.5463 GB, free: 20.3 MB / 414.1 MB " [Timeout remaining time 648] (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 --stepSize=0.002 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.282852580072358] Failed to read output from testmodel.py, exit status != 0: 11.692041059955955 11.715293056 11.5884748 Calling exit ...