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.001664/0.001664, allocations: 107.1 kB / 20.44 MB, free: 1.324 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.002149/0.002149, allocations: 196.5 kB / 23.72 MB, free: 4.492 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.391/1.391, allocations: 207.7 MB / 234.6 MB, free: 9.785 MB / 190.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.2897/0.2897, allocations: 49.61 MB / 336.4 MB, free: 3.875 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.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"}) [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.002223/0.002223, allocations: 67.89 kB / 476.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1273, allocations: 62.44 MB / 0.5261 GB, free: 14.14 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003926/0.1313, allocations: 2.173 MB / 0.5283 GB, free: 11.95 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.1326, allocations: 0.6203 MB / 0.5289 GB, free: 11.32 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001384/0.1327, allocations: 7.938 kB / 0.5289 GB, free: 11.31 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.1329, allocations: 27.66 kB / 0.5289 GB, free: 11.28 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002903/0.1332, allocations: 91.33 kB / 0.529 GB, free: 11.19 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001926/0.1334, allocations: 63.84 kB / 0.5291 GB, free: 11.13 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003841/0.1338, allocations: 278.8 kB / 0.5293 GB, free: 10.86 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001687/0.1339, allocations: 57.44 kB / 0.5294 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001934/0.1341, allocations: 119.5 kB / 0.5295 GB, free: 10.68 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001963/0.1343, allocations: 99.41 kB / 0.5296 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.953e-05/0.1344, allocations: 20 kB / 0.5296 GB, free: 10.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.416e-05/0.1344, allocations: 20 kB / 0.5296 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.024e-05/0.1345, allocations: 63.75 kB / 0.5297 GB, free: 10.48 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.1346, allocations: 95.47 kB / 0.5298 GB, free: 10.39 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003668/0.135, allocations: 238.9 kB / 0.53 GB, free: 10.16 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.135, allocations: 3.938 kB / 0.53 GB, free: 10.15 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.135, allocations: 0 / 0.53 GB, free: 10.15 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.135, allocations: 0 / 0.53 GB, free: 10.15 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001016/0.136, allocations: 0.5007 MB / 0.5305 GB, free: 9.621 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.136, allocations: 12.03 kB / 0.5305 GB, free: 9.609 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.903e-05/0.1361, allocations: 46.73 kB / 0.5305 GB, free: 9.555 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.1362, allocations: 24.8 kB / 0.5306 GB, free: 9.531 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004476/0.1367, allocations: 217 kB / 0.5308 GB, free: 9.293 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.2e-05/0.1368, allocations: 63.97 kB / 0.5308 GB, free: 9.219 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.131e-05/0.1368, allocations: 24.12 kB / 0.5309 GB, free: 9.195 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003804/0.1372, allocations: 179 kB / 0.531 GB, free: 9.008 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.1372, allocations: 0 / 0.531 GB, free: 9.008 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.384e-05/0.1372, allocations: 15.94 kB / 0.5311 GB, free: 8.992 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.1372, allocations: 4 kB / 0.5311 GB, free: 8.988 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002963/0.1375, allocations: 111.9 kB / 0.5312 GB, free: 8.879 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.1386, allocations: 0.5737 MB / 0.5317 GB, free: 8.258 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003745/0.1389, allocations: 138.5 kB / 0.5319 GB, free: 8.113 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/0.1391, allocations: 76.8 kB / 0.5319 GB, free: 8.035 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.52e-05/0.1391, allocations: 4 kB / 0.5319 GB, free: 8.031 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.1392, allocations: 38.56 kB / 0.532 GB, free: 7.984 MB / 414.1 MB Notification: Performance of pre-optimization done (n=18): time 1.292e-06/0.1392, allocations: 3.938 kB / 0.532 GB, free: 7.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001159/0.1403, allocations: 0.5166 MB / 0.5325 GB, free: 7.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.1404, allocations: 55.41 kB / 0.5325 GB, free: 7.363 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002518/0.1406, allocations: 233.1 kB / 0.5328 GB, free: 7.125 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.489e-05/0.1406, allocations: 33.7 kB / 0.5328 GB, free: 7.086 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.1408, allocations: 144.6 kB / 0.5329 GB, free: 6.938 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.046e-05/0.1408, allocations: 79.3 kB / 0.533 GB, free: 6.859 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.134e-05/0.1409, allocations: 45.64 kB / 0.533 GB, free: 6.809 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1411, allocations: 342.8 kB / 0.5334 GB, free: 6.465 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.1412, allocations: 55.97 kB / 0.5334 GB, free: 6.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.1414, allocations: 81.67 kB / 0.5335 GB, free: 6.324 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002946/0.1417, allocations: 137.5 kB / 0.5336 GB, free: 6.184 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.1417, allocations: 0 / 0.5336 GB, free: 6.184 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000378/0.142, allocations: 205.4 kB / 0.5338 GB, free: 5.977 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.1421, allocations: 11.97 kB / 0.5338 GB, free: 5.965 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1421, allocations: 0 / 0.5338 GB, free: 5.965 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.1421, allocations: 4 kB / 0.5338 GB, free: 5.961 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004073/0.1425, allocations: 75.89 kB / 0.5339 GB, free: 5.887 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.1425, allocations: 0 / 0.5339 GB, free: 5.887 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001276/0.1426, allocations: 15.98 kB / 0.5339 GB, free: 5.871 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.1426, allocations: 4 kB / 0.5339 GB, free: 5.867 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: 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.0001346/0.1428, allocations: 141.7 kB / 0.5341 GB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.841e-05/0.1428, allocations: 23.86 kB / 0.5341 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.038e-05/0.1429, allocations: 26.11 kB / 0.5341 GB, free: 5.668 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.1429, allocations: 4 kB / 0.5341 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1429, allocations: 0 / 0.5341 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.1429, allocations: 0 / 0.5341 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008807/0.1438, allocations: 0.4897 MB / 0.5346 GB, free: 5.125 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1438, allocations: 3.938 kB / 0.5346 GB, free: 5.121 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003776/0.1441, allocations: 63.95 kB / 0.5347 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.1441, allocations: 4 kB / 0.5347 GB, free: 5.055 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.1442, allocations: 4 kB / 0.5347 GB, free: 5.051 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.1442, allocations: 7.875 kB / 0.5347 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1442, allocations: 0 / 0.5347 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000581/0.1447, allocations: 355.2 kB / 0.535 GB, free: 4.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.02e-05/0.1448, allocations: 31.88 kB / 0.535 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.153e-05/0.1449, allocations: 4 kB / 0.535 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.145, allocations: 15.94 kB / 0.5351 GB, free: 4.629 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.791e-05/0.1451, allocations: 15.97 kB / 0.5351 GB, free: 4.613 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.1451, allocations: 0 / 0.5351 GB, free: 4.613 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001681/0.1452, allocations: 176.5 kB / 0.5352 GB, free: 4.441 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1452, allocations: 0 / 0.5352 GB, free: 4.441 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002588/0.1455, allocations: 40 kB / 0.5353 GB, free: 4.402 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: 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.0008643/0.1464, allocations: 0.8845 MB / 0.5361 GB, free: 3.492 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003437/0.1467, allocations: 139.9 kB / 0.5363 GB, free: 3.355 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1467, allocations: 0 / 0.5363 GB, free: 3.355 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.1469, allocations: 75.89 kB / 0.5364 GB, free: 3.281 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/0.1473, allocations: 44.3 kB / 0.5364 GB, free: 3.238 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003484/0.1507, allocations: 2.61 MB / 0.5389 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001447/0.1509, allocations: 138.1 kB / 0.5391 GB, free: 396 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.202e-05/0.151, allocations: 29.89 kB / 0.5391 GB, free: 368 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.1511, allocations: 75.41 kB / 0.5392 GB, free: 292 kB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1511, allocations: 0 / 0.5392 GB, free: 292 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2433/0.3945, allocations: 5.214 MB / 0.5443 GB, free: 22.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.38, allocations: 9.203 kB / 0.5443 GB, free: 22.35 MB / 414.1 MB " [Timeout remaining time 649] (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: 14.148172752931714] Failed to read output from testmodel.py, exit status != 0: 11.488243850879371 11.51253207 11.373193788 Calling exit ...