Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Frequency.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.0009028/0.0009028, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001014/0.001014, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8954/0.8954, allocations: 177.1 MB / 204.3 MB, free: 5.703 MB / 186.7 MB " [Timeout remaining time 179] 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.2309/0.2309, allocations: 29.42 MB / 290.1 MB, free: 2.449 MB / 266.7 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.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.522e-06/1.522e-06, allocations: 0 / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.227e-05/1.38e-05, allocations: 6.219 kB / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.004067/0.004081, allocations: 5.186 MB / 435.4 MB, free: 8.402 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.005489, allocations: 1.087 MB / 436.5 MB, free: 7.312 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002283/0.005717, allocations: 23.75 kB / 436.5 MB, free: 7.289 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001988/0.005916, allocations: 83.2 kB / 436.6 MB, free: 7.207 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005594/0.006476, allocations: 318 kB / 436.9 MB, free: 6.895 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002423/0.006718, allocations: 143.7 kB / 437 MB, free: 6.754 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000529/0.007247, allocations: 0.7198 MB / 437.7 MB, free: 6.031 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001887/0.007436, allocations: 113.2 kB / 437.9 MB, free: 5.91 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004583/0.007894, allocations: 438.5 kB / 438.3 MB, free: 5.48 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003131/0.008207, allocations: 299.2 kB / 438.6 MB, free: 5.188 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.083e-05/0.008248, allocations: 32 kB / 438.6 MB, free: 5.156 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.52e-05/0.008293, allocations: 36 kB / 438.6 MB, free: 5.121 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.008398, allocations: 163.5 kB / 438.8 MB, free: 4.961 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.008515, allocations: 163.6 kB / 439 MB, free: 4.801 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003425/0.008858, allocations: 494.3 kB / 439.4 MB, free: 4.316 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.00886, allocations: 0 / 439.4 MB, free: 4.316 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.00886, allocations: 0 / 439.4 MB, free: 4.316 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.008866, allocations: 0 / 439.4 MB, free: 4.316 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0009306/0.009796, allocations: 0.7328 MB / 440.2 MB, free: 3.551 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.009836, allocations: 12.03 kB / 440.2 MB, free: 3.539 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.051e-05/0.009897, allocations: 74.72 kB / 440.3 MB, free: 3.457 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.906e-05/0.009956, allocations: 60.56 kB / 440.3 MB, free: 3.398 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004572/0.01041, allocations: 384.8 kB / 440.7 MB, free: 3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.01043, allocations: 29.38 kB / 440.7 MB, free: 2.973 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.349e-05/0.01048, allocations: 39.94 kB / 440.8 MB, free: 2.934 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004449/0.01092, allocations: 459.6 kB / 441.2 MB, free: 2.445 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.01094, allocations: 4 kB / 441.2 MB, free: 2.441 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.422e-05/0.01096, allocations: 16 kB / 441.2 MB, free: 2.426 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.537e-06/0.01097, allocations: 8 kB / 441.2 MB, free: 2.418 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003218/0.01129, allocations: 308.5 kB / 441.5 MB, free: 2.117 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001211/0.0125, allocations: 1.655 MB / 443.2 MB, free: 364 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000172/0.01267, allocations: 135.7 kB / 443.3 MB, free: 200 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.657e-05/0.01273, allocations: 54.61 kB / 443.4 MB, free: 136 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.382e-05/0.01275, allocations: 0 / 443.4 MB, free: 136 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.01277, allocations: 46.5 kB / 443.4 MB, free: 80 kB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.01277, allocations: 0 / 443.4 MB, free: 80 kB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.1646/0.1773, allocations: 0.5437 MB / 444 MB, free: 54.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/0.1774, allocations: 103.6 kB / 444.1 MB, free: 54.35 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003079/0.1777, allocations: 382 kB / 444.4 MB, free: 54.24 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.1777, allocations: 29.02 kB / 444.5 MB, free: 54.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.311e-05/0.1778, allocations: 280.1 kB / 444.7 MB, free: 54.06 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.829e-05/0.1778, allocations: 64.84 kB / 444.8 MB, free: 54.03 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.56e-05/0.1779, allocations: 59.88 kB / 444.9 MB, free: 54.01 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.039e-05/0.1779, allocations: 350.1 kB / 445.2 MB, free: 53.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.794e-05/0.178, allocations: 44.55 kB / 445.3 MB, free: 53.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.779e-05/0.1781, allocations: 196 kB / 445.4 MB, free: 53.53 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001784/0.1782, allocations: 262.5 kB / 445.7 MB, free: 53.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.1782, allocations: 6.969 kB / 445.7 MB, free: 53.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002484/0.1785, allocations: 295.6 kB / 446 MB, free: 53.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.1785, allocations: 9.031 kB / 446 MB, free: 53.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.1785, allocations: 3.031 kB / 446 MB, free: 53.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.1785, allocations: 9.312 kB / 446 MB, free: 53.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.1787, allocations: 68.61 kB / 446.1 MB, free: 53.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.1787, allocations: 10.44 kB / 446.1 MB, free: 53.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.1788, allocations: 14.23 kB / 446.1 MB, free: 53.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.1788, allocations: 22.52 kB / 446.1 MB, free: 53.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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.0001222/0.179, allocations: 186.8 kB / 446.3 MB, free: 53.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.614e-05/0.179, allocations: 35.36 kB / 446.3 MB, free: 53.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001902/0.1792, allocations: 166.2 kB / 446.5 MB, free: 52.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.1792, allocations: 3.156 kB / 446.5 MB, free: 52.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.1792, allocations: 1.5 kB / 446.5 MB, free: 52.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1792, allocations: 3.188 kB / 446.5 MB, free: 52.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003983/0.1796, allocations: 498.2 kB / 447 MB, free: 52.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1796, allocations: 2.812 kB / 447 MB, free: 52.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.1797, allocations: 37.89 kB / 447 MB, free: 52.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1797, allocations: 0 / 447 MB, free: 52.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.998e-06/0.1797, allocations: 6.938 kB / 447 MB, free: 52.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1797, allocations: 0 / 447 MB, free: 52.58 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1797, allocations: 3.953 kB / 447.1 MB, free: 52.58 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002362/0.18, allocations: 395 kB / 447.4 MB, free: 52.29 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.344e-05/0.18, allocations: 40.52 kB / 447.5 MB, free: 52.27 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.44e-05/0.18, allocations: 4 kB / 447.5 MB, free: 52.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.849e-05/0.1801, allocations: 6.781 kB / 447.5 MB, free: 52.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.233e-05/0.1801, allocations: 14.38 kB / 447.5 MB, free: 52.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.1801, allocations: 9.25 kB / 447.5 MB, free: 52.26 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001324/0.1803, allocations: 259 kB / 447.8 MB, free: 52.13 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1803, allocations: 0 / 447.8 MB, free: 52.13 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002891/0.1806, allocations: 71.38 kB / 447.8 MB, free: 52.12 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0003172/0.1809, allocations: 0.9298 MB / 448.8 MB, free: 51.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001838/0.1811, allocations: 161 kB / 448.9 MB, free: 51.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1811, allocations: 0 / 448.9 MB, free: 51.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.375e-05/0.1811, allocations: 59.84 kB / 449 MB, free: 51.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004478/0.1816, allocations: 90.98 kB / 449.1 MB, free: 51.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/0.1837, allocations: 3.32 MB / 452.4 MB, free: 48.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001231/0.1838, allocations: 238 kB / 452.6 MB, free: 48.82 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.1839, allocations: 51.47 kB / 452.7 MB, free: 48.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.184, allocations: 149.4 kB / 452.8 MB, free: 48.7 MB / 410.7 MB Notification: Performance of SimCode: time 7.52e-07/0.184, allocations: 3.281 kB / 452.8 MB, free: 48.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02949/0.2135, allocations: 8.031 MB / 460.9 MB, free: 47.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.033/7.246, allocations: 4.531 kB / 460.9 MB, free: 47.25 MB / 410.7 MB " [Timeout remaining time 653] (rm -f PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Frequency.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.Frequency_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.202051063999534] Failed to read output from testmodel.py, exit status != 0: 7.329709889367223 7.337758268 7.3272136549999995 Calling exit ...