Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.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.001395/0.001395, allocations: 123 kB / 17.79 MB, free: 5.266 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.001557/0.001557, allocations: 207.2 kB / 20.75 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.533/1.533, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1919/0.1919, allocations: 38.51 MB / 348.7 MB, free: 2.562 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(PowerSystems.Examples.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 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.002045/0.002045, allocations: 59.91 kB / 487.1 MB, free: 22.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1273, allocations: 62.41 MB / 0.5367 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.006336/0.1337, allocations: 4.623 MB / 0.5412 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.136, allocations: 1.359 MB / 0.5425 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.1361, allocations: 19.81 kB / 0.5425 GB, free: 1.508 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001186/0.1373, allocations: 410.2 kB / 0.5429 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005704/0.1379, allocations: 258.8 kB / 0.5432 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000425/0.1383, allocations: 159.7 kB / 0.5433 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006939/0.139, allocations: 0.5607 MB / 0.5439 GB, free: 140 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004215/0.1394, allocations: 237.2 kB / 0.5441 GB, free: 15.9 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004154/0.1398, allocations: 270.9 kB / 0.5443 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000452/0.1403, allocations: 299 kB / 0.5446 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.807e-05/0.1403, allocations: 28 kB / 0.5447 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002525/0.1406, allocations: 131.8 kB / 0.5448 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002013/0.1408, allocations: 207.4 kB / 0.545 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002142/0.141, allocations: 211 kB / 0.5452 GB, free: 14.78 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006501/0.1417, allocations: 0.5176 MB / 0.5457 GB, free: 14.26 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1417, allocations: 0 / 0.5457 GB, free: 14.26 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1417, allocations: 0 / 0.5457 GB, free: 14.26 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.1417, allocations: 0 / 0.5457 GB, free: 14.26 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001253/0.1429, allocations: 0.7102 MB / 0.5464 GB, free: 13.5 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.143, allocations: 12.03 kB / 0.5464 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.336e-05/0.1431, allocations: 82.7 kB / 0.5465 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006198/0.1437, allocations: 84.55 kB / 0.5466 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007117/0.1444, allocations: 411.5 kB / 0.5469 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.094e-05/0.1444, allocations: 29.3 kB / 0.547 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/0.1446, allocations: 47.92 kB / 0.547 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007737/0.1454, allocations: 484.8 kB / 0.5475 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.1454, allocations: 7.875 kB / 0.5475 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.298e-05/0.1454, allocations: 15.98 kB / 0.5475 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001265/0.1456, allocations: 28.98 kB / 0.5475 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005781/0.1461, allocations: 347.7 kB / 0.5479 GB, free: 11.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.1485, allocations: 1.718 MB / 0.5495 GB, free: 10.07 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003007/0.1488, allocations: 145.1 kB / 0.5497 GB, free: 9.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001755/0.149, allocations: 109.7 kB / 0.5498 GB, free: 9.797 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.149, allocations: 4.281 kB / 0.5498 GB, free: 9.793 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.93e-05/0.149, allocations: 42.56 kB / 0.5498 GB, free: 9.742 MB / 414.1 MB Notification: Performance of pre-optimization done (n=16): time 1.743e-06/0.149, allocations: 0 / 0.5498 GB, free: 9.742 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.001689/0.1507, allocations: 0.8905 MB / 0.5507 GB, free: 8.781 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.072e-05/0.1508, allocations: 81.11 kB / 0.5508 GB, free: 8.684 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004259/0.1512, allocations: 312.6 kB / 0.5511 GB, free: 8.363 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.1512, allocations: 29.7 kB / 0.5511 GB, free: 8.328 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001911/0.1514, allocations: 260 kB / 0.5514 GB, free: 8.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.009e-05/0.1515, allocations: 71.41 kB / 0.5514 GB, free: 8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.1516, allocations: 57.98 kB / 0.5515 GB, free: 7.934 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.1518, allocations: 342.8 kB / 0.5518 GB, free: 7.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001647/0.1519, allocations: 96.22 kB / 0.5519 GB, free: 7.496 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000244/0.1522, allocations: 205.3 kB / 0.5521 GB, free: 7.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004317/0.1526, allocations: 331.4 kB / 0.5524 GB, free: 6.883 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1526, allocations: 0 / 0.5524 GB, free: 6.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009466/0.1535, allocations: 473.6 kB / 0.5529 GB, free: 6.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.1536, allocations: 8 kB / 0.5529 GB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006306/0.1542, allocations: 307.9 kB / 0.5532 GB, free: 6.102 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005258/0.1547, allocations: 137 kB / 0.5533 GB, free: 5.965 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.1549, allocations: 51.91 kB / 0.5533 GB, free: 5.914 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003265/0.1582, allocations: 2.443 MB / 0.5557 GB, free: 3.336 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002455/0.1584, allocations: 12 kB / 0.5557 GB, free: 3.324 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.1585, allocations: 12.16 kB / 0.5557 GB, free: 3.312 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002747/0.1587, allocations: 198.3 kB / 0.5559 GB, free: 3.109 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.287e-05/0.1588, allocations: 31.81 kB / 0.556 GB, free: 3.078 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005006/0.1593, allocations: 267.9 kB / 0.5562 GB, free: 2.805 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.1593, allocations: 4 kB / 0.5562 GB, free: 2.801 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1593, allocations: 4.062 kB / 0.5562 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.1593, allocations: 0 / 0.5562 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.1605, allocations: 0.7351 MB / 0.5569 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1605, allocations: 0 / 0.5569 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002285/0.1608, allocations: 43.91 kB / 0.557 GB, free: 1.953 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001166/0.1609, allocations: 36.83 kB / 0.557 GB, free: 1.914 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.27e-05/0.1609, allocations: 8 kB / 0.557 GB, free: 1.906 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.1609, allocations: 0 / 0.557 GB, free: 1.906 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.1609, allocations: 7.984 kB / 0.557 GB, free: 1.898 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006259/0.1615, allocations: 438.6 kB / 0.5575 GB, free: 1.441 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.775e-05/0.1616, allocations: 100.9 kB / 0.5576 GB, free: 1.324 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.263e-05/0.1617, allocations: 8.094 kB / 0.5576 GB, free: 1.316 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.1618, allocations: 12.03 kB / 0.5576 GB, free: 1.305 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.103e-05/0.1618, allocations: 19.91 kB / 0.5576 GB, free: 1.285 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.1619, allocations: 8 kB / 0.5576 GB, free: 1.277 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002494/0.1621, allocations: 223 kB / 0.5578 GB, free: 1.059 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1621, allocations: 3.938 kB / 0.5578 GB, free: 1.055 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004748/0.1626, allocations: 88 kB / 0.5579 GB, free: 0.9688 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009828/0.1636, allocations: 0.9912 MB / 0.5589 GB, free: 15.94 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000789/0.1644, allocations: 394.5 kB / 0.5592 GB, free: 15.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.1644, allocations: 8 kB / 0.5593 GB, free: 15.54 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002395/0.1646, allocations: 173.8 kB / 0.5594 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005045/0.1651, allocations: 61.75 kB / 0.5595 GB, free: 15.29 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005054/0.1702, allocations: 3.557 MB / 0.563 GB, free: 11.54 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006435/0.1708, allocations: 0.838 MB / 0.5638 GB, free: 10.68 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001873/0.171, allocations: 70.84 kB / 0.5638 GB, free: 10.61 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001891/0.1712, allocations: 123.4 kB / 0.564 GB, free: 10.49 MB / 430.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1712, allocations: 0 / 0.564 GB, free: 10.49 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05057/0.2217, allocations: 7.404 MB / 0.5712 GB, free: 3.207 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/12.86, allocations: 7.859 kB / 0.5712 GB, free: 3.203 MB / 430.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.867070320993662] Failed to read output from testmodel.py, exit status != 0: 12.958728530007647 12.97364626 12.829122062 Calling exit ...