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.001763/0.001763, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.002179/0.002179, allocations: 213.4 kB / 23.74 MB, free: 4.688 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.42/1.42, allocations: 207.6 MB / 234.5 MB, free: 10.01 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.2992/0.2992, 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.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.002299/0.002299, allocations: 67.91 kB / 476.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.128, allocations: 62.42 MB / 0.5261 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.003955/0.1319, allocations: 2.317 MB / 0.5284 GB, free: 12 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001286/0.1332, allocations: 0.6553 MB / 0.529 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.1334, allocations: 7.938 kB / 0.529 GB, free: 11.32 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001793/0.1335, allocations: 35.66 kB / 0.5291 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003013/0.1338, allocations: 87.33 kB / 0.5291 GB, free: 11.2 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002039/0.134, allocations: 63.84 kB / 0.5292 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004048/0.1345, allocations: 278.8 kB / 0.5295 GB, free: 10.87 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/0.1346, allocations: 61.45 kB / 0.5295 GB, free: 10.81 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001992/0.1348, allocations: 115.5 kB / 0.5296 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002386/0.1351, allocations: 123.4 kB / 0.5298 GB, free: 10.57 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.078e-05/0.1351, allocations: 16 kB / 0.5298 GB, free: 10.56 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.65e-05/0.1352, allocations: 24 kB / 0.5298 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.287e-05/0.1353, allocations: 51.75 kB / 0.5298 GB, free: 10.48 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.1354, allocations: 119.3 kB / 0.53 GB, free: 10.37 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003933/0.1358, allocations: 226.9 kB / 0.5302 GB, free: 10.14 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.1358, allocations: 0 / 0.5302 GB, free: 10.14 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1358, allocations: 0 / 0.5302 GB, free: 10.14 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.1358, allocations: 0 / 0.5302 GB, free: 10.14 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.001126/0.1369, allocations: 0.5084 MB / 0.5307 GB, free: 9.605 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.137, allocations: 8.031 kB / 0.5307 GB, free: 9.598 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.226e-05/0.1371, allocations: 50.73 kB / 0.5307 GB, free: 9.539 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.1372, allocations: 28.8 kB / 0.5308 GB, free: 9.512 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004458/0.1376, allocations: 213 kB / 0.531 GB, free: 9.277 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/0.1377, allocations: 71.97 kB / 0.531 GB, free: 9.195 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.613e-05/0.1378, allocations: 20.12 kB / 0.531 GB, free: 9.176 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004025/0.1382, allocations: 175.1 kB / 0.5312 GB, free: 8.992 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.1382, allocations: 0 / 0.5312 GB, free: 8.992 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.1382, allocations: 8 kB / 0.5312 GB, free: 8.984 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.1382, allocations: 4 kB / 0.5312 GB, free: 8.98 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003244/0.1386, allocations: 131.8 kB / 0.5314 GB, free: 8.852 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.1397, allocations: 0.6009 MB / 0.5319 GB, free: 8.203 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004273/0.1402, allocations: 146.5 kB / 0.5321 GB, free: 8.051 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.1403, allocations: 72.83 kB / 0.5321 GB, free: 7.977 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.1403, allocations: 8 kB / 0.5322 GB, free: 7.969 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/0.1404, allocations: 30.56 kB / 0.5322 GB, free: 7.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=18): time 1.342e-06/0.1404, allocations: 0 / 0.5322 GB, free: 7.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001326/0.1417, allocations: 0.5128 MB / 0.5327 GB, free: 7.383 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.1418, allocations: 55.39 kB / 0.5327 GB, free: 7.316 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002965/0.1421, allocations: 237.1 kB / 0.533 GB, free: 7.074 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/0.1421, allocations: 29.7 kB / 0.533 GB, free: 7.039 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.1422, allocations: 156.4 kB / 0.5331 GB, free: 6.879 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.438e-05/0.1423, allocations: 75.38 kB / 0.5332 GB, free: 6.805 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.778e-05/0.1424, allocations: 45.64 kB / 0.5333 GB, free: 6.754 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002123/0.1426, allocations: 338.8 kB / 0.5336 GB, free: 6.414 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001515/0.1427, allocations: 55.97 kB / 0.5336 GB, free: 6.359 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.1429, allocations: 77.67 kB / 0.5337 GB, free: 6.277 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000303/0.1432, allocations: 145.5 kB / 0.5338 GB, free: 6.129 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.31e-07/0.1432, allocations: 0 / 0.5338 GB, free: 6.129 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004396/0.1436, allocations: 213.3 kB / 0.5341 GB, free: 5.914 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.1437, allocations: 4 kB / 0.5341 GB, free: 5.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.1437, allocations: 4 kB / 0.5341 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.1437, allocations: 0 / 0.5341 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004486/0.1441, allocations: 79.92 kB / 0.5341 GB, free: 5.828 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.1442, allocations: 0 / 0.5341 GB, free: 5.828 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.1443, allocations: 15.98 kB / 0.5342 GB, free: 5.812 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.1443, allocations: 4 kB / 0.5342 GB, free: 5.809 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.0001683/0.1445, allocations: 133.8 kB / 0.5343 GB, free: 5.668 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.944e-05/0.1446, allocations: 27.8 kB / 0.5343 GB, free: 5.641 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.5e-05/0.1446, allocations: 34.09 kB / 0.5343 GB, free: 5.605 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.1447, allocations: 4 kB / 0.5343 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.1447, allocations: 0 / 0.5343 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1447, allocations: 0 / 0.5343 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009135/0.1456, allocations: 0.5091 MB / 0.5348 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1456, allocations: 0 / 0.5348 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000375/0.146, allocations: 63.91 kB / 0.5349 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.146, allocations: 11.94 kB / 0.5349 GB, free: 4.969 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.146, allocations: 3.984 kB / 0.5349 GB, free: 4.965 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.146, allocations: 3.938 kB / 0.5349 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.146, allocations: 0 / 0.5349 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006109/0.1466, allocations: 351.2 kB / 0.5353 GB, free: 4.602 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.841e-05/0.1467, allocations: 31.88 kB / 0.5353 GB, free: 4.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.099e-05/0.1467, allocations: 8 kB / 0.5353 GB, free: 4.562 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.1469, allocations: 11.94 kB / 0.5353 GB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.872e-05/0.1469, allocations: 19.91 kB / 0.5353 GB, free: 4.531 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.978e-06/0.1469, allocations: 4 kB / 0.5353 GB, free: 4.527 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001789/0.1471, allocations: 172.5 kB / 0.5355 GB, free: 4.359 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1471, allocations: 0 / 0.5355 GB, free: 4.359 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002791/0.1474, allocations: 44 kB / 0.5355 GB, free: 4.316 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.0009213/0.1483, allocations: 0.8845 MB / 0.5364 GB, free: 3.406 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000365/0.1487, allocations: 131.9 kB / 0.5365 GB, free: 3.277 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1487, allocations: 64 / 0.5365 GB, free: 3.277 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001554/0.1488, allocations: 83.83 kB / 0.5366 GB, free: 3.195 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003996/0.1492, allocations: 40.36 kB / 0.5366 GB, free: 3.156 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003528/0.1528, allocations: 2.609 MB / 0.5392 GB, free: 472 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2026/0.3553, allocations: 0.7444 MB / 0.5399 GB, free: 22.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001417/0.3555, allocations: 21.86 kB / 0.5399 GB, free: 22.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.3556, allocations: 76.36 kB / 0.54 GB, free: 22.42 MB / 414.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3556, allocations: 0 / 0.54 GB, free: 22.42 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0326/0.3882, allocations: 4.786 MB / 0.5447 GB, free: 21.72 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.26, allocations: 13.17 kB / 0.5447 GB, free: 21.71 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 & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.269501056998706] Failed to read output from testmodel.py, exit status != 0: 11.369180179000978 11.393540854 11.253371753 Calling exit ...