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.001991/0.001991, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.00222/0.00222, allocations: 212 kB / 23.73 MB, free: 4.387 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.574/1.574, allocations: 207.7 MB / 234.6 MB, free: 9.793 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.3556/0.3556, allocations: 49.61 MB / 336.4 MB, free: 3.887 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.003435/0.003435, allocations: 71.89 kB / 476.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1304, allocations: 62.42 MB / 0.5261 GB, free: 14.16 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.005463/0.1358, allocations: 2.165 MB / 0.5283 GB, free: 11.98 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.1374, allocations: 0.632 MB / 0.5289 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001836/0.1376, allocations: 4 kB / 0.5289 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.1377, allocations: 31.59 kB / 0.5289 GB, free: 11.3 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003206/0.1381, allocations: 83.31 kB / 0.529 GB, free: 11.22 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002124/0.1383, allocations: 59.94 kB / 0.529 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004743/0.1387, allocations: 270.8 kB / 0.5293 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001925/0.1389, allocations: 53.09 kB / 0.5293 GB, free: 10.84 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002893/0.1392, allocations: 115.5 kB / 0.5295 GB, free: 10.73 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002799/0.1395, allocations: 103.5 kB / 0.5296 GB, free: 10.63 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.724e-05/0.1396, allocations: 16 kB / 0.5296 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.1397, allocations: 20 kB / 0.5296 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.676e-05/0.1397, allocations: 47.72 kB / 0.5296 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.1399, allocations: 99.5 kB / 0.5297 GB, free: 10.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004844/0.1404, allocations: 231 kB / 0.53 GB, free: 10.22 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1404, allocations: 0 / 0.53 GB, free: 10.22 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1404, allocations: 0 / 0.53 GB, free: 10.22 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.1404, allocations: 0 / 0.53 GB, free: 10.22 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.001078/0.1415, allocations: 496.8 kB / 0.5304 GB, free: 9.707 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.1415, allocations: 19.97 kB / 0.5304 GB, free: 9.688 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.081e-05/0.1416, allocations: 50.73 kB / 0.5305 GB, free: 9.629 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.1417, allocations: 28.75 kB / 0.5305 GB, free: 9.602 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004537/0.1422, allocations: 201.1 kB / 0.5307 GB, free: 9.383 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.1422, allocations: 12.38 kB / 0.5307 GB, free: 9.371 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.311e-05/0.1422, allocations: 24.36 kB / 0.5307 GB, free: 9.348 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003628/0.1426, allocations: 167.2 kB / 0.5309 GB, free: 9.172 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.1426, allocations: 4 kB / 0.5309 GB, free: 9.168 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.1426, allocations: 4 kB / 0.5309 GB, free: 9.164 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.1426, allocations: 11.98 kB / 0.5309 GB, free: 9.152 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002976/0.1429, allocations: 115.9 kB / 0.531 GB, free: 9.039 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.144, allocations: 0.558 MB / 0.5316 GB, free: 8.434 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002749/0.1443, allocations: 130.4 kB / 0.5317 GB, free: 8.297 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.1444, allocations: 76.83 kB / 0.5318 GB, free: 8.219 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.498e-05/0.1445, allocations: 4 kB / 0.5318 GB, free: 8.215 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.1445, allocations: 34.5 kB / 0.5318 GB, free: 8.172 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.433e-06/0.1445, allocations: 0 / 0.5318 GB, free: 8.172 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001154/0.1457, allocations: 493.2 kB / 0.5323 GB, free: 7.656 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.1457, allocations: 55.31 kB / 0.5323 GB, free: 7.59 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003101/0.146, allocations: 237 kB / 0.5326 GB, free: 7.344 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.146, allocations: 29.7 kB / 0.5326 GB, free: 7.309 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.1462, allocations: 148.6 kB / 0.5327 GB, free: 7.156 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.601e-05/0.1462, allocations: 67.39 kB / 0.5328 GB, free: 7.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.263e-05/0.1463, allocations: 41.7 kB / 0.5328 GB, free: 7.043 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.1465, allocations: 334.8 kB / 0.5332 GB, free: 6.707 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.1467, allocations: 55.91 kB / 0.5332 GB, free: 6.652 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.1468, allocations: 77.67 kB / 0.5333 GB, free: 6.57 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002859/0.1471, allocations: 141.8 kB / 0.5334 GB, free: 6.426 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.1471, allocations: 0 / 0.5334 GB, free: 6.426 MB / 414.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003947/0.1475, allocations: 185.5 kB / 0.5336 GB, free: 6.238 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.1475, allocations: 7.984 kB / 0.5336 GB, free: 6.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.1475, allocations: 0 / 0.5336 GB, free: 6.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.1475, allocations: 4 kB / 0.5336 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004036/0.1479, allocations: 71.89 kB / 0.5337 GB, free: 6.156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/0.1492, allocations: 1.326 MB / 0.535 GB, free: 4.715 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.1493, allocations: 12.02 kB / 0.535 GB, free: 4.703 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.1493, allocations: 4 kB / 0.535 GB, free: 4.699 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.0001416/0.1495, allocations: 133.8 kB / 0.5351 GB, free: 4.559 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.17e-05/0.1495, allocations: 24 kB / 0.5351 GB, free: 4.535 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003838/0.1499, allocations: 195.6 kB / 0.5353 GB, free: 4.336 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.1499, allocations: 4 kB / 0.5353 GB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.1499, allocations: 0 / 0.5353 GB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1499, allocations: 3.984 kB / 0.5353 GB, free: 4.328 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008114/0.1507, allocations: 489.4 kB / 0.5358 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1507, allocations: 0 / 0.5358 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002245/0.151, allocations: 35.98 kB / 0.5358 GB, free: 3.766 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.887e-06/0.151, allocations: 7.984 kB / 0.5358 GB, free: 3.758 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.151, allocations: 11.98 kB / 0.5359 GB, free: 3.746 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.151, allocations: 0 / 0.5359 GB, free: 3.746 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.151, allocations: 0 / 0.5359 GB, free: 3.746 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005408/0.1515, allocations: 358.8 kB / 0.5362 GB, free: 3.379 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.1516, allocations: 31.89 kB / 0.5362 GB, free: 3.348 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.158e-05/0.1517, allocations: 4 kB / 0.5362 GB, free: 3.344 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.1518, allocations: 15.98 kB / 0.5362 GB, free: 3.328 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.266e-05/0.1519, allocations: 7.984 kB / 0.5363 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.1519, allocations: 12 kB / 0.5363 GB, free: 3.309 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001814/0.1521, allocations: 164.5 kB / 0.5364 GB, free: 3.148 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1521, allocations: 0 / 0.5364 GB, free: 3.148 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000312/0.1524, allocations: 48 kB / 0.5365 GB, free: 3.102 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.000896/0.1533, allocations: 0.8728 MB / 0.5373 GB, free: 2.203 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005671/0.1538, allocations: 172 kB / 0.5375 GB, free: 2.035 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.1539, allocations: 0 / 0.5375 GB, free: 2.035 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001548/0.154, allocations: 67.91 kB / 0.5375 GB, free: 1.969 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003885/0.1544, allocations: 36.36 kB / 0.5376 GB, free: 1.934 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2355/0.3899, allocations: 2.57 MB / 0.5401 GB, free: 21.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001676/0.39, allocations: 146 kB / 0.5402 GB, free: 21.63 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001634/0.3902, allocations: 23.25 kB / 0.5403 GB, free: 21.63 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.3903, allocations: 81.7 kB / 0.5403 GB, free: 21.63 MB / 414.1 MB Notification: Performance of SimCode: time 1.884e-06/0.3903, allocations: 0.5 kB / 0.5403 GB, free: 21.63 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03612/0.4265, allocations: 5.682 MB / 0.5459 GB, free: 20.35 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.97, allocations: 9.109 kB / 0.5459 GB, free: 20.34 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 & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4_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_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.258291367907077] Failed to read output from testmodel.py, exit status != 0: 12.084701150655746 12.103479408 11.959516533 Calling exit ...