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.001377/0.001377, allocations: 111.1 kB / 20.44 MB, free: 1.059 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.001506/0.001506, allocations: 209.3 kB / 23.73 MB, free: 4.16 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.515/1.515, allocations: 207.7 MB / 234.6 MB, free: 9.797 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.3215/0.3215, allocations: 49.61 MB / 336.4 MB, free: 3.875 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.002707/0.002707, allocations: 75.89 kB / 476.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1486, allocations: 62.41 MB / 0.5261 GB, free: 14.17 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.003863/0.1524, allocations: 1.986 MB / 0.5281 GB, free: 12.17 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.1537, allocations: 0.5736 MB / 0.5286 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.1538, allocations: 7.938 kB / 0.5286 GB, free: 11.58 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.154, allocations: 27.73 kB / 0.5287 GB, free: 11.55 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002508/0.1542, allocations: 67.47 kB / 0.5287 GB, free: 11.48 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001677/0.1544, allocations: 43.95 kB / 0.5288 GB, free: 11.44 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003109/0.1547, allocations: 211 kB / 0.529 GB, free: 11.23 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.1548, allocations: 40.77 kB / 0.529 GB, free: 11.2 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.155, allocations: 79.66 kB / 0.5291 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.1551, allocations: 67.62 kB / 0.5291 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.301e-05/0.1552, allocations: 23.98 kB / 0.5292 GB, free: 11.03 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.382e-05/0.1552, allocations: 12 kB / 0.5292 GB, free: 11.02 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.41e-05/0.1553, allocations: 43.72 kB / 0.5292 GB, free: 10.97 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.982e-05/0.1554, allocations: 75.59 kB / 0.5293 GB, free: 10.9 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.1557, allocations: 163.2 kB / 0.5294 GB, free: 10.74 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1557, allocations: 0 / 0.5294 GB, free: 10.74 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1557, allocations: 0 / 0.5294 GB, free: 10.74 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1557, allocations: 0 / 0.5294 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.0007963/0.1565, allocations: 429.2 kB / 0.5299 GB, free: 10.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.1565, allocations: 8.031 kB / 0.5299 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.697e-05/0.1566, allocations: 50.67 kB / 0.5299 GB, free: 10.22 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.976e-05/0.1566, allocations: 24.8 kB / 0.5299 GB, free: 10.2 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003515/0.157, allocations: 183.2 kB / 0.5301 GB, free: 9.992 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.157, allocations: 8.375 kB / 0.5301 GB, free: 9.984 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.257e-05/0.1571, allocations: 16.36 kB / 0.5301 GB, free: 9.969 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000267/0.1573, allocations: 131.4 kB / 0.5303 GB, free: 9.828 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.1573, allocations: 4 kB / 0.5303 GB, free: 9.824 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.1574, allocations: 4 kB / 0.5303 GB, free: 9.82 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.1574, allocations: 7.984 kB / 0.5303 GB, free: 9.812 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001902/0.1576, allocations: 75.94 kB / 0.5303 GB, free: 9.738 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008606/0.1584, allocations: 487.6 kB / 0.5308 GB, free: 9.215 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002953/0.1587, allocations: 98.61 kB / 0.5309 GB, free: 9.109 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.98e-05/0.1588, allocations: 44.84 kB / 0.531 GB, free: 9.062 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.638e-06/0.1588, allocations: 224 / 0.531 GB, free: 9.062 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.1589, allocations: 42.44 kB / 0.531 GB, free: 9.012 MB / 414.1 MB Notification: Performance of pre-optimization done (n=11): time 9.72e-07/0.1589, allocations: 0 / 0.531 GB, free: 9.012 MB / 414.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008926/0.1597, allocations: 372.6 kB / 0.5313 GB, free: 8.613 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.89e-05/0.1598, allocations: 55.41 kB / 0.5314 GB, free: 8.547 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/0.1601, allocations: 225 kB / 0.5316 GB, free: 8.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.1601, allocations: 25.7 kB / 0.5316 GB, free: 8.289 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.1602, allocations: 128.3 kB / 0.5318 GB, free: 8.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.815e-05/0.1602, allocations: 51.58 kB / 0.5318 GB, free: 8.109 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.825e-05/0.1603, allocations: 29.72 kB / 0.5318 GB, free: 8.074 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.1605, allocations: 330.8 kB / 0.5322 GB, free: 7.742 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.547e-05/0.1606, allocations: 31.98 kB / 0.5322 GB, free: 7.711 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.842e-05/0.1607, allocations: 54.55 kB / 0.5322 GB, free: 7.648 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.1609, allocations: 90.5 kB / 0.5323 GB, free: 7.551 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.1609, allocations: 0 / 0.5323 GB, free: 7.551 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002741/0.1611, allocations: 153.4 kB / 0.5325 GB, free: 7.395 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.1611, allocations: 4 kB / 0.5325 GB, free: 7.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.1612, allocations: 4 kB / 0.5325 GB, free: 7.387 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1612, allocations: 0 / 0.5325 GB, free: 7.387 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.1613, allocations: 43.91 kB / 0.5325 GB, free: 7.344 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.1613, allocations: 0 / 0.5325 GB, free: 7.344 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.1614, allocations: 4 kB / 0.5325 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.1614, allocations: 4 kB / 0.5325 GB, free: 7.336 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.0001272/0.1616, allocations: 133.8 kB / 0.5327 GB, free: 7.195 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.653e-05/0.1616, allocations: 23.8 kB / 0.5327 GB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.021e-05/0.1617, allocations: 21.7 kB / 0.5327 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1617, allocations: 4 kB / 0.5327 GB, free: 7.137 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.1617, allocations: 0 / 0.5327 GB, free: 7.137 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1617, allocations: 3.938 kB / 0.5327 GB, free: 7.133 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000579/0.1623, allocations: 402.3 kB / 0.5331 GB, free: 6.691 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1623, allocations: 0 / 0.5331 GB, free: 6.691 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001567/0.1624, allocations: 27.98 kB / 0.5331 GB, free: 6.664 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1624, allocations: 0 / 0.5331 GB, free: 6.664 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.1624, allocations: 8 kB / 0.5331 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1624, allocations: 0 / 0.5331 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1624, allocations: 0 / 0.5331 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004115/0.1629, allocations: 271.2 kB / 0.5334 GB, free: 6.375 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.664e-05/0.1629, allocations: 27.92 kB / 0.5334 GB, free: 6.348 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.806e-05/0.163, allocations: 0 / 0.5334 GB, free: 6.348 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.1631, allocations: 12 kB / 0.5334 GB, free: 6.336 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.27e-05/0.1631, allocations: 3.984 kB / 0.5334 GB, free: 6.332 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.1631, allocations: 4 kB / 0.5334 GB, free: 6.328 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001743/0.1633, allocations: 172.5 kB / 0.5336 GB, free: 6.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1633, allocations: 0 / 0.5336 GB, free: 6.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002652/0.1636, allocations: 31.94 kB / 0.5336 GB, free: 6.129 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.0007521/0.1643, allocations: 0.7864 MB / 0.5344 GB, free: 5.316 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002449/0.1646, allocations: 83.95 kB / 0.5345 GB, free: 5.234 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.1646, allocations: 0 / 0.5345 GB, free: 5.234 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.586e-05/0.1647, allocations: 35.98 kB / 0.5345 GB, free: 5.199 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003993/0.1651, allocations: 49.12 kB / 0.5346 GB, free: 5.152 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003052/0.1681, allocations: 2.275 MB / 0.5368 GB, free: 2.789 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000116/0.1682, allocations: 116.9 kB / 0.5369 GB, free: 2.652 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.436e-05/0.1683, allocations: 17.47 kB / 0.5369 GB, free: 2.637 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.615e-05/0.1684, allocations: 47.42 kB / 0.5369 GB, free: 2.59 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1684, allocations: 0 / 0.5369 GB, free: 2.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2957/0.4641, allocations: 4.4 MB / 0.5412 GB, free: 22.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.99, allocations: 13.11 kB / 0.5413 GB, free: 22.47 MB / 414.1 MB " [Timeout remaining time 648] (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: 15.108745562843978] Failed to read output from testmodel.py, exit status != 0: 12.103243380784988 12.127220578 11.967843498 Calling exit ...