Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.00173/0.00173, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.002164/0.002164, allocations: 209.7 kB / 23.74 MB, free: 4.672 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.433/1.433, allocations: 207.6 MB / 234.5 MB, free: 10 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.2987/0.2987, allocations: 49.57 MB / 336.3 MB, free: 4.102 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.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",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.002205/0.002205, allocations: 75.88 kB / 476.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1258, allocations: 62.43 MB / 0.5261 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.003515/0.1293, allocations: 2.079 MB / 0.5281 GB, free: 12.23 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.1305, allocations: 0.6125 MB / 0.5287 GB, free: 11.61 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.956e-05/0.1306, allocations: 7.938 kB / 0.5288 GB, free: 11.61 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.1307, allocations: 27.72 kB / 0.5288 GB, free: 11.58 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002294/0.1309, allocations: 63.48 kB / 0.5288 GB, free: 11.52 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000158/0.1311, allocations: 43.94 kB / 0.5289 GB, free: 11.47 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002731/0.1313, allocations: 219 kB / 0.5291 GB, free: 11.26 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.1315, allocations: 32.78 kB / 0.5291 GB, free: 11.23 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.1316, allocations: 83.64 kB / 0.5292 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000164/0.1318, allocations: 91.55 kB / 0.5293 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.549e-05/0.1318, allocations: 12 kB / 0.5293 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.455e-05/0.1319, allocations: 16 kB / 0.5293 GB, free: 11.03 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.594e-05/0.1319, allocations: 27.86 kB / 0.5293 GB, free: 11 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 9.647e-05/0.132, allocations: 91.45 kB / 0.5294 GB, free: 10.91 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002489/0.1322, allocations: 167.2 kB / 0.5296 GB, free: 10.75 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1322, allocations: 4 kB / 0.5296 GB, free: 10.74 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1322, allocations: 0 / 0.5296 GB, free: 10.74 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.1322, allocations: 0 / 0.5296 GB, free: 10.74 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0007833/0.133, allocations: 429.2 kB / 0.53 GB, free: 10.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.1331, allocations: 8.031 kB / 0.53 GB, free: 10.29 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.17e-05/0.1331, allocations: 38.75 kB / 0.53 GB, free: 10.24 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.572e-05/0.1332, allocations: 32.78 kB / 0.5301 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003441/0.1335, allocations: 191.1 kB / 0.5303 GB, free: 9.992 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.1336, allocations: 12.38 kB / 0.5303 GB, free: 9.98 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.239e-05/0.1336, allocations: 12.38 kB / 0.5303 GB, free: 9.969 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002625/0.1339, allocations: 127.4 kB / 0.5304 GB, free: 9.832 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.1339, allocations: 0 / 0.5304 GB, free: 9.832 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.1339, allocations: 8 kB / 0.5304 GB, free: 9.824 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.1339, allocations: 4 kB / 0.5304 GB, free: 9.82 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.1341, allocations: 75.94 kB / 0.5305 GB, free: 9.746 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007826/0.1349, allocations: 0.4956 MB / 0.531 GB, free: 9.203 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002851/0.1351, allocations: 106.5 kB / 0.5311 GB, free: 9.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.483e-05/0.1352, allocations: 45.06 kB / 0.5311 GB, free: 9.043 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.1353, allocations: 3.938 kB / 0.5311 GB, free: 9.039 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.1353, allocations: 34.5 kB / 0.5312 GB, free: 8.996 MB / 414.1 MB Notification: Performance of pre-optimization done (n=11): time 1.122e-06/0.1353, allocations: 0 / 0.5312 GB, free: 8.996 MB / 414.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007907/0.1361, allocations: 368.8 kB / 0.5315 GB, free: 8.602 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/0.1361, allocations: 51.41 kB / 0.5316 GB, free: 8.539 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002458/0.1364, allocations: 232.9 kB / 0.5318 GB, free: 8.305 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.887e-05/0.1364, allocations: 25.7 kB / 0.5318 GB, free: 8.273 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.473e-05/0.1365, allocations: 128.3 kB / 0.5319 GB, free: 8.145 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.338e-05/0.1365, allocations: 51.58 kB / 0.532 GB, free: 8.094 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.537e-05/0.1366, allocations: 29.66 kB / 0.532 GB, free: 8.059 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.1367, allocations: 334.8 kB / 0.5323 GB, free: 7.723 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.374e-05/0.1368, allocations: 35.98 kB / 0.5324 GB, free: 7.688 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.075e-05/0.1369, allocations: 46.56 kB / 0.5324 GB, free: 7.633 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001785/0.1371, allocations: 94.55 kB / 0.5325 GB, free: 7.531 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.1371, allocations: 4 kB / 0.5325 GB, free: 7.527 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002473/0.1373, allocations: 149.4 kB / 0.5326 GB, free: 7.375 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.1374, allocations: 7.938 kB / 0.5326 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.1374, allocations: 4 kB / 0.5326 GB, free: 7.363 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.1374, allocations: 0 / 0.5326 GB, free: 7.363 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.1375, allocations: 35.98 kB / 0.5327 GB, free: 7.328 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.1375, allocations: 0 / 0.5327 GB, free: 7.328 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.1376, allocations: 7.984 kB / 0.5327 GB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.866e-06/0.1377, allocations: 8.062 kB / 0.5327 GB, free: 7.312 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (16): * Single equations (assignments): 16 * 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.000109/0.1378, allocations: 129.8 kB / 0.5328 GB, free: 7.176 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.349e-05/0.1378, allocations: 23.8 kB / 0.5328 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.178e-05/0.1379, allocations: 25.64 kB / 0.5329 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.1379, allocations: 0 / 0.5329 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.1379, allocations: 4 kB / 0.5329 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.1379, allocations: 0 / 0.5329 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005722/0.1385, allocations: 413.5 kB / 0.5333 GB, free: 6.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.1385, allocations: 4 kB / 0.5333 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001753/0.1386, allocations: 31.92 kB / 0.5333 GB, free: 6.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1386, allocations: 0 / 0.5333 GB, free: 6.625 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.1386, allocations: 0 / 0.5333 GB, free: 6.625 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/0.1387, allocations: 11.97 kB / 0.5333 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1387, allocations: 0 / 0.5333 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003725/0.139, allocations: 268.2 kB / 0.5336 GB, free: 6.336 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.902e-05/0.1391, allocations: 23.94 kB / 0.5336 GB, free: 6.312 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.691e-05/0.1391, allocations: 0 / 0.5336 GB, free: 6.312 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.1392, allocations: 11.98 kB / 0.5336 GB, free: 6.301 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.279e-05/0.1393, allocations: 7.984 kB / 0.5336 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-06/0.1393, allocations: 0 / 0.5336 GB, free: 6.293 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001697/0.1394, allocations: 176.4 kB / 0.5338 GB, free: 6.121 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1394, allocations: 0 / 0.5338 GB, free: 6.121 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002587/0.1397, allocations: 31.94 kB / 0.5338 GB, free: 6.09 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.omega_e_filt) * 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 (12): * Single equations (assignments): 12 * 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.0006703/0.1404, allocations: 0.7943 MB / 0.5346 GB, free: 5.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002439/0.1406, allocations: 79.91 kB / 0.5347 GB, free: 5.191 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1406, allocations: 0 / 0.5347 GB, free: 5.191 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.554e-05/0.1407, allocations: 40.05 kB / 0.5347 GB, free: 5.152 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003886/0.1411, allocations: 44.59 kB / 0.5347 GB, free: 5.109 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002956/0.1441, allocations: 2.251 MB / 0.5369 GB, free: 2.77 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003891/0.1444, allocations: 0.7359 MB / 0.5377 GB, free: 2.008 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.963e-05/0.1445, allocations: 17.48 kB / 0.5377 GB, free: 1.988 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.1446, allocations: 51.42 kB / 0.5377 GB, free: 1.938 MB / 414.1 MB Notification: Performance of SimCode: time 1.062e-06/0.1446, allocations: 4 kB / 0.5377 GB, free: 1.934 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2332/0.3779, allocations: 3.928 MB / 0.5416 GB, free: 22.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.15, allocations: 8.609 kB / 0.5416 GB, free: 22.52 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.131120013000327] Failed to read output from testmodel.py, exit status != 0: 11.261128227997688 11.280894475 11.145691327 Calling exit ...