Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001673/0.001673, allocations: 108 kB / 16.41 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001973/0.001973, allocations: 191.9 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.762/0.762, allocations: 122.9 MB / 414.1 MB, free: 15.81 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 65.73 kB / 0.5679 GB, free: 28.93 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1451, allocations: 77.92 MB / 0.644 GB, free: 9.57 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.005033/0.1502, allocations: 2.881 MB / 0.6469 GB, free: 6.676 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003289/0.1535, allocations: 1.808 MB / 0.6486 GB, free: 4.855 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003088/0.1539, allocations: 7.938 kB / 0.6486 GB, free: 4.848 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000973/0.1548, allocations: 227 kB / 0.6488 GB, free: 4.625 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005998/0.1555, allocations: 211 kB / 0.649 GB, free: 4.418 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006633/0.1561, allocations: 219.4 kB / 0.6493 GB, free: 4.203 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004605/0.1566, allocations: 315 kB / 0.6496 GB, free: 3.895 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003609/0.157, allocations: 182.6 kB / 0.6497 GB, free: 3.715 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002263/0.1572, allocations: 123.6 kB / 0.6498 GB, free: 3.594 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003071/0.1575, allocations: 147.5 kB / 0.65 GB, free: 3.449 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.469e-05/0.1576, allocations: 20 kB / 0.65 GB, free: 3.43 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004767/0.1581, allocations: 279.5 kB / 0.6503 GB, free: 3.156 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.1582, allocations: 83.73 kB / 0.6503 GB, free: 3.074 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001328/0.1583, allocations: 123.4 kB / 0.6505 GB, free: 2.953 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000726/0.1591, allocations: 438.5 kB / 0.6509 GB, free: 2.523 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1591, allocations: 7.938 kB / 0.6509 GB, free: 2.516 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1591, allocations: 0 / 0.6509 GB, free: 2.516 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.1591, allocations: 0 / 0.6509 GB, free: 2.516 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001201/0.1603, allocations: 0.553 MB / 0.6514 GB, free: 1.91 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.1604, allocations: 12.62 kB / 0.6514 GB, free: 1.898 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.483e-05/0.1604, allocations: 54.73 kB / 0.6515 GB, free: 1.836 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001037/0.1615, allocations: 112.7 kB / 0.6516 GB, free: 1.727 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004388/0.1619, allocations: 271.2 kB / 0.6519 GB, free: 1.426 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.162, allocations: 12.75 kB / 0.6519 GB, free: 1.414 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.321e-05/0.162, allocations: 24.36 kB / 0.6519 GB, free: 1.391 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007177/0.1628, allocations: 386.1 kB / 0.6523 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.1628, allocations: 3.938 kB / 0.6523 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.059e-05/0.1628, allocations: 15.98 kB / 0.6523 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-05/0.1629, allocations: 20.31 kB / 0.6523 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000722/0.1636, allocations: 344.6 kB / 0.6526 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002009/0.1656, allocations: 1.74 MB / 0.6543 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007177/0.1664, allocations: 329 kB / 0.6546 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002727/0.1667, allocations: 153.6 kB / 0.6548 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001333/0.1668, allocations: 89.11 kB / 0.6549 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.1668, allocations: 34.56 kB / 0.6549 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=20): time 1.513e-06/0.1668, allocations: 0 / 0.6549 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21): time 0.001396/0.1682, allocations: 0.6019 MB / 0.6555 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/0.1683, allocations: 77.11 kB / 0.6556 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002526/0.1686, allocations: 219.7 kB / 0.6558 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.1686, allocations: 33.7 kB / 0.6558 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.106e-05/0.1687, allocations: 164.2 kB / 0.656 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.085e-05/0.1688, allocations: 79.31 kB / 0.656 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.1689, allocations: 65.92 kB / 0.6561 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.169, allocations: 326.8 kB / 0.6564 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000309/0.1693, allocations: 141.9 kB / 0.6566 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003491/0.1697, allocations: 223.3 kB / 0.6568 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006149/0.1703, allocations: 369.7 kB / 0.6571 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1703, allocations: 4 kB / 0.6571 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009408/0.1713, allocations: 442 kB / 0.6575 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.1713, allocations: 4 kB / 0.6576 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.1713, allocations: 4 kB / 0.6576 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002212/0.1715, allocations: 40.81 kB / 0.6576 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003685/0.1719, allocations: 79.81 kB / 0.6577 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001382/0.1733, allocations: 1.608 MB / 0.6592 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000333/0.1736, allocations: 39.92 kB / 0.6593 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.128e-05/0.1737, allocations: 19.98 kB / 0.6593 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003651/0.174, allocations: 240 kB / 0.6595 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003295/0.1744, allocations: 211.6 kB / 0.6597 GB, free: 8.793 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005766/0.175, allocations: 351.5 kB / 0.6601 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.627e-06/0.175, allocations: 4 kB / 0.6601 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008944/0.1759, allocations: 420 kB / 0.6605 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.1759, allocations: 9.719 kB / 0.6605 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.1759, allocations: 4 kB / 0.6605 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001443/0.1761, allocations: 48.8 kB / 0.6605 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003142/0.1764, allocations: 68.14 kB / 0.6606 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.1777, allocations: 1.615 MB / 0.6622 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003124/0.178, allocations: 35.84 kB / 0.6622 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.49e-05/0.178, allocations: 15.94 kB / 0.6622 GB, free: 6.047 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (31): * Single equations (assignments): 30 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001281/0.1782, allocations: 192.2 kB / 0.6624 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.732e-05/0.1783, allocations: 23.84 kB / 0.6624 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006941/0.179, allocations: 360.1 kB / 0.6628 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.179, allocations: 4 kB / 0.6628 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.696e-06/0.179, allocations: 0 / 0.6628 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.179, allocations: 3.984 kB / 0.6628 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001464/0.1805, allocations: 0.9588 MB / 0.6637 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.1805, allocations: 3.938 kB / 0.6637 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002366/0.1807, allocations: 52.11 kB / 0.6638 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001238/0.1809, allocations: 48.95 kB / 0.6638 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.1809, allocations: 4 kB / 0.6638 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001087/0.182, allocations: 1.516 MB / 0.6653 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.182, allocations: 4 kB / 0.6653 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006843/0.1827, allocations: 0.5291 MB / 0.6658 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/0.1828, allocations: 128.8 kB / 0.6659 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.326e-05/0.1829, allocations: 19.92 kB / 0.666 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000286/0.1832, allocations: 27.97 kB / 0.666 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.231e-05/0.1832, allocations: 19.92 kB / 0.666 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-05/0.1833, allocations: 8 kB / 0.666 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001857/0.1835, allocations: 163 kB / 0.6662 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1835, allocations: 3.938 kB / 0.6662 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006332/0.1841, allocations: 108 kB / 0.6663 GB, free: 1.602 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 simulation (21): * Single equations (assignments): 20 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009915/0.1851, allocations: 1.085 MB / 0.6673 GB, free: 484 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001399/0.1865, allocations: 0.7645 MB / 0.6681 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1865, allocations: 256 / 0.6681 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000393/0.1869, allocations: 270.4 kB / 0.6683 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004748/0.1874, allocations: 33.36 kB / 0.6684 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003983/0.1914, allocations: 3.027 MB / 0.6713 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003376/0.1918, allocations: 0.7717 MB / 0.6721 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002653/0.192, allocations: 94 kB / 0.6722 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.1922, allocations: 67.41 kB / 0.6722 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of SimCode: time 2.6e-07/0.1922, allocations: 0 / 0.6722 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02519/0.2174, allocations: 5.79 MB / 0.6779 GB, free: 5.543 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.432/9.649, allocations: 15.5 kB / 0.6779 GB, free: 5.531 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)