Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.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.001683/0.001683, 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.00166/0.00166, allocations: 208.7 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.6/1.6, 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.4745/0.4745, allocations: 49.61 MB / 336.4 MB, free: 3.867 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.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",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.00222/0.00222, allocations: 72.31 kB / 476.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.119, allocations: 62.44 MB / 0.5261 GB, free: 14.13 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.003984/0.123, allocations: 2.449 MB / 0.5285 GB, free: 11.66 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.1244, allocations: 0.7254 MB / 0.5292 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.1245, allocations: 7.938 kB / 0.5293 GB, free: 10.92 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001908/0.1247, allocations: 47.52 kB / 0.5293 GB, free: 10.87 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003663/0.1251, allocations: 131 kB / 0.5294 GB, free: 10.74 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002293/0.1253, allocations: 79.89 kB / 0.5295 GB, free: 10.66 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000506/0.1258, allocations: 402.1 kB / 0.5299 GB, free: 10.27 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001961/0.126, allocations: 69.86 kB / 0.53 GB, free: 10.2 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002325/0.1263, allocations: 159.4 kB / 0.5301 GB, free: 10.05 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002414/0.1265, allocations: 151.2 kB / 0.5302 GB, free: 9.898 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.975e-05/0.1266, allocations: 24 kB / 0.5303 GB, free: 9.875 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.1267, allocations: 28 kB / 0.5303 GB, free: 9.848 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.972e-05/0.1267, allocations: 67.64 kB / 0.5304 GB, free: 9.781 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000157/0.1269, allocations: 147.2 kB / 0.5305 GB, free: 9.637 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004429/0.1273, allocations: 318.5 kB / 0.5308 GB, free: 9.324 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.1273, allocations: 3.938 kB / 0.5308 GB, free: 9.32 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1273, allocations: 0 / 0.5308 GB, free: 9.32 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.1273, allocations: 4 kB / 0.5308 GB, free: 9.316 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001233/0.1286, allocations: 0.5943 MB / 0.5314 GB, free: 8.691 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.1286, allocations: 8.031 kB / 0.5314 GB, free: 8.684 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.275e-05/0.1287, allocations: 58.72 kB / 0.5315 GB, free: 8.617 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.1288, allocations: 44.7 kB / 0.5315 GB, free: 8.574 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005111/0.1293, allocations: 258.3 kB / 0.5317 GB, free: 8.293 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.1294, allocations: 16.81 kB / 0.5318 GB, free: 8.277 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.062e-05/0.1294, allocations: 36.33 kB / 0.5318 GB, free: 8.242 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004535/0.1299, allocations: 238.8 kB / 0.532 GB, free: 7.992 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.1299, allocations: 0 / 0.532 GB, free: 7.992 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.246e-05/0.1299, allocations: 8 kB / 0.532 GB, free: 7.984 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.1299, allocations: 8 kB / 0.532 GB, free: 7.977 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003841/0.1303, allocations: 177.6 kB / 0.5322 GB, free: 7.801 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001225/0.1315, allocations: 0.7478 MB / 0.5329 GB, free: 7.004 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003596/0.1319, allocations: 174.5 kB / 0.5331 GB, free: 6.824 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002134/0.1321, allocations: 108.8 kB / 0.5332 GB, free: 6.715 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.1321, allocations: 4 kB / 0.5332 GB, free: 6.711 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/0.1322, allocations: 30.56 kB / 0.5332 GB, free: 6.672 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 1.883e-06/0.1322, allocations: 0 / 0.5332 GB, free: 6.672 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.001717/0.1339, allocations: 0.6629 MB / 0.5339 GB, free: 5.977 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.511e-05/0.134, allocations: 59.34 kB / 0.5339 GB, free: 5.906 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003735/0.1343, allocations: 304.5 kB / 0.5342 GB, free: 5.602 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.1344, allocations: 33.7 kB / 0.5343 GB, free: 5.562 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/0.1346, allocations: 176.8 kB / 0.5344 GB, free: 5.383 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.077e-05/0.1346, allocations: 107 kB / 0.5345 GB, free: 5.277 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.311e-05/0.1347, allocations: 57.69 kB / 0.5346 GB, free: 5.215 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.1349, allocations: 338.8 kB / 0.5349 GB, free: 4.875 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/0.1351, allocations: 75.95 kB / 0.535 GB, free: 4.801 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002045/0.1353, allocations: 114.7 kB / 0.5351 GB, free: 4.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003713/0.1357, allocations: 196.1 kB / 0.5353 GB, free: 4.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.1357, allocations: 0 / 0.5353 GB, free: 4.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006733/0.1363, allocations: 315.1 kB / 0.5356 GB, free: 4.164 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.1364, allocations: 8 kB / 0.5356 GB, free: 4.156 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1364, allocations: 0 / 0.5356 GB, free: 4.156 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002837/0.1367, allocations: 60.75 kB / 0.5357 GB, free: 4.094 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003628/0.137, allocations: 72.02 kB / 0.5357 GB, free: 4.023 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002768/0.1398, allocations: 2.829 MB / 0.5385 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001968/0.14, allocations: 19.95 kB / 0.5385 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.691e-05/0.14, allocations: 8 kB / 0.5385 GB, free: 0.9375 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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001705/0.1402, allocations: 141.8 kB / 0.5386 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.761e-05/0.1403, allocations: 31.81 kB / 0.5387 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004866/0.1407, allocations: 261.6 kB / 0.5389 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.1407, allocations: 8.062 kB / 0.5389 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-06/0.1407, allocations: 0 / 0.5389 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.1408, allocations: 3.938 kB / 0.5389 GB, free: 496 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2087/0.3495, allocations: 0.5997 MB / 0.5395 GB, free: 22.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.3495, allocations: 3.281 kB / 0.5395 GB, free: 22.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003226/0.3498, allocations: 68.81 kB / 0.5396 GB, free: 22.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.3498, allocations: 1.344 kB / 0.5396 GB, free: 22.63 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.035e-05/0.3498, allocations: 10.72 kB / 0.5396 GB, free: 22.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.3498, allocations: 4.906 kB / 0.5396 GB, free: 22.63 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3498, allocations: 0 / 0.5396 GB, free: 22.63 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007006/0.3505, allocations: 446.9 kB / 0.54 GB, free: 22.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001414/0.3507, allocations: 43.72 kB / 0.5401 GB, free: 22.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.961e-05/0.3507, allocations: 8.391 kB / 0.5401 GB, free: 22.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.3509, allocations: 13.34 kB / 0.5401 GB, free: 22.5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.16e-05/0.351, allocations: 20.67 kB / 0.5401 GB, free: 22.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.351, allocations: 7.531 kB / 0.5401 GB, free: 22.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002248/0.3512, allocations: 213 kB / 0.5403 GB, free: 22.42 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3512, allocations: 0 / 0.5403 GB, free: 22.42 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003893/0.3516, allocations: 73.59 kB / 0.5404 GB, free: 22.42 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.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 (28): * Single equations (assignments): 28 * 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.3524, allocations: 0.9734 MB / 0.5413 GB, free: 21.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007881/0.3532, allocations: 368.3 kB / 0.5417 GB, free: 21.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3532, allocations: 0 / 0.5417 GB, free: 21.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001806/0.3533, allocations: 102.8 kB / 0.5418 GB, free: 21.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004231/0.3538, allocations: 62.12 kB / 0.5419 GB, free: 21.63 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00394/0.3577, allocations: 3.38 MB / 0.5452 GB, free: 19.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000152/0.3579, allocations: 185 kB / 0.5453 GB, free: 19.79 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001252/0.358, allocations: 36.08 kB / 0.5454 GB, free: 19.78 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.3581, allocations: 116.7 kB / 0.5455 GB, free: 19.69 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3581, allocations: 0 / 0.5455 GB, free: 19.69 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03886/0.397, allocations: 7.765 MB / 0.5531 GB, free: 18.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.25, allocations: 9.297 kB / 0.5531 GB, free: 18.07 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.006 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.758082481101155] Failed to read output from testmodel.py, exit status != 0: 12.367297694087029 12.381448086 12.251266765 Calling exit ...