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.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/PowerSystems 2.0.0/package.mo", uses=false) 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.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(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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 106.6 kB / 17.06 MB, free: 6.102 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.001305/0.001305, allocations: 193.4 kB / 18 MB, free: 5.172 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.417/1.417, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1861/0.1861, allocations: 38.04 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 63.89 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3204, allocations: 58.05 MB / 0.5036 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.005734/0.3262, allocations: 5.438 MB / 0.5089 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001713/0.328, allocations: 1.103 MB / 0.51 GB, free: 3.039 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002334/0.3282, allocations: 18.59 kB / 0.51 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002269/0.3284, allocations: 83.5 kB / 0.5101 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006607/0.3291, allocations: 289.4 kB / 0.5104 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002894/0.3294, allocations: 148.8 kB / 0.5105 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006483/0.3301, allocations: 0.6982 MB / 0.5112 GB, free: 2.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002611/0.3304, allocations: 178.2 kB / 0.5114 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004231/0.3308, allocations: 312.2 kB / 0.5117 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004747/0.3313, allocations: 329.8 kB / 0.512 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.315e-05/0.3314, allocations: 32.69 kB / 0.512 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.632e-05/0.3315, allocations: 38.22 kB / 0.512 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.3316, allocations: 152.5 kB / 0.5122 GB, free: 2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00022/0.3318, allocations: 242.6 kB / 0.5124 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005438/0.3324, allocations: 497.6 kB / 0.5129 GB, free: 1.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3324, allocations: 1.188 kB / 0.5129 GB, free: 1.656 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3324, allocations: 4 kB / 0.5129 GB, free: 1.652 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.3324, allocations: 0 / 0.5129 GB, free: 1.652 MB / 382.1 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.00118/0.3336, allocations: 0.81 MB / 0.5137 GB, free: 1.035 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.3337, allocations: 14.7 kB / 0.5137 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.423e-05/0.3337, allocations: 71.52 kB / 0.5138 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.01e-05/0.3338, allocations: 58.86 kB / 0.5138 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006095/0.3344, allocations: 465.1 kB / 0.5143 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.541e-05/0.3345, allocations: 28.61 kB / 0.5143 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.845e-05/0.3345, allocations: 35.72 kB / 0.5143 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006294/0.3352, allocations: 458.7 kB / 0.5148 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.548e-05/0.3352, allocations: 6.094 kB / 0.5148 GB, free: 356 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.763e-05/0.3353, allocations: 11.94 kB / 0.5148 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.3353, allocations: 13.12 kB / 0.5148 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004757/0.3358, allocations: 308.7 kB / 0.5151 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002081/0.3379, allocations: 1.77 MB / 0.5168 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002417/0.3381, allocations: 145.5 kB / 0.517 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.3382, allocations: 61.17 kB / 0.517 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.629e-05/0.3383, allocations: 6 kB / 0.517 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.3383, allocations: 34.16 kB / 0.517 GB, free: 14.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.3383, allocations: 0 / 0.517 GB, free: 14.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001109/0.3394, allocations: 0.6159 MB / 0.5177 GB, free: 14.14 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.046e-05/0.3395, allocations: 109.9 kB / 0.5178 GB, free: 14.01 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004392/0.3399, allocations: 371.2 kB / 0.5181 GB, free: 13.82 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.34, allocations: 26.23 kB / 0.5181 GB, free: 13.79 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002287/0.3402, allocations: 288 kB / 0.5184 GB, free: 13.56 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.059e-05/0.3403, allocations: 64.28 kB / 0.5185 GB, free: 13.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.767e-05/0.3404, allocations: 57.36 kB / 0.5185 GB, free: 13.47 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.3406, allocations: 346.9 kB / 0.5189 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.3407, allocations: 53.64 kB / 0.5189 GB, free: 13.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002449/0.3409, allocations: 199.9 kB / 0.5191 GB, free: 12.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003403/0.3413, allocations: 264.3 kB / 0.5193 GB, free: 12.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3413, allocations: 1.156 kB / 0.5194 GB, free: 12.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004334/0.3417, allocations: 301.7 kB / 0.5196 GB, free: 12.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.3418, allocations: 8.062 kB / 0.5196 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.3418, allocations: 8.812 kB / 0.5197 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.3418, allocations: 10.88 kB / 0.5197 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002419/0.3421, allocations: 74.42 kB / 0.5197 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.3421, allocations: 6.859 kB / 0.5197 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.3423, allocations: 15.09 kB / 0.5198 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.3423, allocations: 13.61 kB / 0.5198 GB, free: 12.49 MB / 398.1 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.0002017/0.3426, allocations: 186.9 kB / 0.5199 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.914e-05/0.3426, allocations: 41.02 kB / 0.52 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002964/0.3429, allocations: 168.8 kB / 0.5201 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.343, allocations: 3.391 kB / 0.5202 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.343, allocations: 1.156 kB / 0.5202 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.343, allocations: 2.109 kB / 0.5202 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007319/0.3437, allocations: 0.5216 MB / 0.5207 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3437, allocations: 1.125 kB / 0.5207 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001823/0.3439, allocations: 36.7 kB / 0.5207 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.3439, allocations: 2 kB / 0.5207 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.3439, allocations: 10.7 kB / 0.5207 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.62e-06/0.344, allocations: 6.078 kB / 0.5207 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.344, allocations: 6.062 kB / 0.5207 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004531/0.3444, allocations: 395.2 kB / 0.5211 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.3445, allocations: 111.8 kB / 0.5212 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.859e-05/0.3446, allocations: 11.02 kB / 0.5212 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.3448, allocations: 9.969 kB / 0.5212 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.188e-05/0.3448, allocations: 18.02 kB / 0.5212 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.3448, allocations: 5.141 kB / 0.5212 GB, free: 11.36 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002917/0.3451, allocations: 251.3 kB / 0.5215 GB, free: 11.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3451, allocations: 0 / 0.5215 GB, free: 11.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004314/0.3456, allocations: 73.69 kB / 0.5216 GB, free: 11.22 MB / 398.1 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.0007549/0.3463, allocations: 0.938 MB / 0.5225 GB, free: 10.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002875/0.3466, allocations: 157.9 kB / 0.5226 GB, free: 10.33 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3466, allocations: 1.125 kB / 0.5226 GB, free: 10.33 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.761e-05/0.3467, allocations: 63.09 kB / 0.5227 GB, free: 10.31 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000721/0.3475, allocations: 101.8 kB / 0.5228 GB, free: 10.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004217/0.3517, allocations: 3.407 MB / 0.5261 GB, free: 7.836 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005569/0.3523, allocations: 0.844 MB / 0.5269 GB, free: 7.121 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002131/0.3525, allocations: 51.06 kB / 0.527 GB, free: 7.102 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002041/0.3527, allocations: 147.2 kB / 0.5271 GB, free: 6.996 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3527, allocations: 3.938 kB / 0.5271 GB, free: 6.992 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03141/0.3841, allocations: 7.023 MB / 0.534 GB, free: 4.844 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.826/9.211, allocations: 12.06 kB / 0.534 GB, free: 4.84 MB / 398.1 MB (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)