Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.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.001316/0.001316, 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.001455/0.001455, allocations: 208.4 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.539/1.539, allocations: 207.7 MB / 234.6 MB, free: 9.801 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.3323/0.3323, allocations: 49.61 MB / 336.4 MB, free: 3.871 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.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",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.002364/0.002364, allocations: 75.91 kB / 476.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1554, allocations: 62.43 MB / 0.5261 GB, free: 14.15 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.003951/0.1593, allocations: 2.079 MB / 0.5282 GB, free: 12.05 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.1607, allocations: 0.5892 MB / 0.5287 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.1608, allocations: 7.938 kB / 0.5288 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001554/0.1609, allocations: 31.66 kB / 0.5288 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002669/0.1612, allocations: 79.41 kB / 0.5289 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000182/0.1614, allocations: 47.94 kB / 0.5289 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003837/0.1618, allocations: 250.8 kB / 0.5291 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001751/0.1619, allocations: 40.78 kB / 0.5292 GB, free: 11 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001899/0.1621, allocations: 111.5 kB / 0.5293 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001819/0.1623, allocations: 87.55 kB / 0.5294 GB, free: 10.81 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.672e-05/0.1624, allocations: 16 kB / 0.5294 GB, free: 10.79 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.399e-05/0.1624, allocations: 19.94 kB / 0.5294 GB, free: 10.77 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.585e-05/0.1625, allocations: 43.73 kB / 0.5294 GB, free: 10.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.1626, allocations: 83.58 kB / 0.5295 GB, free: 10.65 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003404/0.1629, allocations: 207 kB / 0.5297 GB, free: 10.45 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.1629, allocations: 0 / 0.5297 GB, free: 10.45 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.1629, allocations: 4 kB / 0.5297 GB, free: 10.44 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.1629, allocations: 0 / 0.5297 GB, free: 10.44 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009765/0.1639, allocations: 465 kB / 0.5302 GB, free: 9.957 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.164, allocations: 11.97 kB / 0.5302 GB, free: 9.945 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.774e-05/0.164, allocations: 46.73 kB / 0.5302 GB, free: 9.891 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.1641, allocations: 28.8 kB / 0.5303 GB, free: 9.863 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004231/0.1646, allocations: 205.1 kB / 0.5305 GB, free: 9.641 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.1646, allocations: 12.31 kB / 0.5305 GB, free: 9.629 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.81e-05/0.1646, allocations: 16.38 kB / 0.5305 GB, free: 9.613 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003228/0.165, allocations: 155.4 kB / 0.5306 GB, free: 9.449 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.165, allocations: 3.953 kB / 0.5306 GB, free: 9.445 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.165, allocations: 8 kB / 0.5306 GB, free: 9.438 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.165, allocations: 8 kB / 0.5306 GB, free: 9.43 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002511/0.1653, allocations: 95.94 kB / 0.5307 GB, free: 9.336 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.1663, allocations: 0.5114 MB / 0.5312 GB, free: 8.777 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002844/0.1666, allocations: 122.5 kB / 0.5314 GB, free: 8.648 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.1668, allocations: 60.83 kB / 0.5314 GB, free: 8.586 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.1668, allocations: 4 kB / 0.5314 GB, free: 8.582 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/0.1668, allocations: 42.5 kB / 0.5315 GB, free: 8.531 MB / 414.1 MB Notification: Performance of pre-optimization done (n=16): time 4.198e-06/0.1668, allocations: 4 kB / 0.5315 GB, free: 8.527 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001137/0.168, allocations: 493.2 kB / 0.5319 GB, free: 8.012 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.168, allocations: 55.41 kB / 0.532 GB, free: 7.945 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002701/0.1683, allocations: 228.9 kB / 0.5322 GB, free: 7.711 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.1683, allocations: 29.7 kB / 0.5322 GB, free: 7.676 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.1684, allocations: 140.5 kB / 0.5324 GB, free: 7.535 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.768e-05/0.1685, allocations: 59.44 kB / 0.5324 GB, free: 7.477 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.799e-05/0.1685, allocations: 45.7 kB / 0.5325 GB, free: 7.426 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.1687, allocations: 330.8 kB / 0.5328 GB, free: 7.094 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.1689, allocations: 55.91 kB / 0.5328 GB, free: 7.039 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.169, allocations: 78.48 kB / 0.5329 GB, free: 6.953 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: grid.f = grid.fnom (0.15915494309189535 * generator.omega_e_nom = grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/0.1701, allocations: 339.9 kB / 0.5332 GB, free: 6.613 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.1701, allocations: 0 / 0.5332 GB, free: 6.613 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004594/0.1706, allocations: 201.8 kB / 0.5334 GB, free: 6.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1706, allocations: 12.09 kB / 0.5334 GB, free: 6.398 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1706, allocations: 0 / 0.5334 GB, free: 6.398 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.1706, allocations: 0 / 0.5334 GB, free: 6.398 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002678/0.1709, allocations: 63.95 kB / 0.5335 GB, free: 6.336 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.1709, allocations: 0 / 0.5335 GB, free: 6.336 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.171, allocations: 7.938 kB / 0.5335 GB, free: 6.328 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.171, allocations: 8 kB / 0.5335 GB, free: 6.32 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: grid.f = grid.fnom. 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 (23): * Single equations (assignments): 23 * 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.0001555/0.1712, allocations: 145.7 kB / 0.5337 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.161e-05/0.1713, allocations: 23.8 kB / 0.5337 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.28e-05/0.1713, allocations: 22.12 kB / 0.5337 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1713, allocations: 4 kB / 0.5337 GB, free: 6.113 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.1713, allocations: 3.984 kB / 0.5337 GB, free: 6.109 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1713, allocations: 0 / 0.5337 GB, free: 6.109 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008328/0.1722, allocations: 477.3 kB / 0.5342 GB, free: 5.594 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/0.1722, allocations: 7.984 kB / 0.5342 GB, free: 5.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002667/0.1724, allocations: 51.97 kB / 0.5342 GB, free: 5.535 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.1725, allocations: 4 kB / 0.5342 GB, free: 5.531 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.1725, allocations: 0 / 0.5342 GB, free: 5.531 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.1725, allocations: 3.938 kB / 0.5342 GB, free: 5.527 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1725, allocations: 0 / 0.5342 GB, free: 5.527 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005621/0.173, allocations: 331.2 kB / 0.5345 GB, free: 5.188 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.84e-05/0.1731, allocations: 35.88 kB / 0.5346 GB, free: 5.152 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.386e-05/0.1732, allocations: 0 / 0.5346 GB, free: 5.152 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001498/0.1733, allocations: 16 kB / 0.5346 GB, free: 5.137 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.492e-05/0.1734, allocations: 11.97 kB / 0.5346 GB, free: 5.125 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.1734, allocations: 11.94 kB / 0.5346 GB, free: 5.113 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001938/0.1736, allocations: 164.5 kB / 0.5348 GB, free: 4.953 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1736, allocations: 0 / 0.5348 GB, free: 4.953 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002889/0.1739, allocations: 40 kB / 0.5348 GB, free: 4.914 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 (18): * Single equations (assignments): 18 * 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.0009376/0.1748, allocations: 0.8567 MB / 0.5356 GB, free: 4.031 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003832/0.1752, allocations: 132.5 kB / 0.5358 GB, free: 3.902 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1752, allocations: 4 kB / 0.5358 GB, free: 3.898 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001419/0.1753, allocations: 67.81 kB / 0.5358 GB, free: 3.832 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004259/0.1758, allocations: 44.28 kB / 0.5359 GB, free: 3.789 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003469/0.1792, allocations: 2.449 MB / 0.5383 GB, free: 1.246 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.1794, allocations: 137.7 kB / 0.5384 GB, free: 1.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.252e-05/0.1795, allocations: 17.64 kB / 0.5384 GB, free: 1.074 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.1796, allocations: 67.41 kB / 0.5385 GB, free: 1.008 MB / 414.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1796, allocations: 0 / 0.5385 GB, free: 1.008 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3189/0.4985, allocations: 5.002 MB / 0.5434 GB, free: 22.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.95, allocations: 9.578 kB / 0.5434 GB, free: 22.64 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.005 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.075832413043827] Failed to read output from testmodel.py, exit status != 0: 12.062212228775024 12.07618234 11.910479637 Calling exit ...