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.001064/0.001064, allocations: 111.7 kB / 17.06 MB, free: 6.016 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.001068/0.001068, allocations: 191 kB / 18 MB, free: 5.098 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.337/1.337, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1776/0.1776, allocations: 38.03 MB / 329.9 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 71.89 kB / 457.6 MB, free: 7.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2958, allocations: 58.06 MB / 0.5036 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.005638/0.3015, allocations: 5.43 MB / 0.5089 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.3033, allocations: 1.113 MB / 0.51 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002684/0.3036, allocations: 18.19 kB / 0.51 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002651/0.3039, allocations: 83.2 kB / 0.5101 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007428/0.3046, allocations: 299.2 kB / 0.5104 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003319/0.305, allocations: 141.1 kB / 0.5105 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007059/0.3057, allocations: 0.7039 MB / 0.5112 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002908/0.306, allocations: 181.9 kB / 0.5114 GB, free: 2.195 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004461/0.3065, allocations: 314.7 kB / 0.5117 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005009/0.307, allocations: 329.2 kB / 0.512 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.009e-05/0.307, allocations: 33.59 kB / 0.512 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.106e-05/0.3071, allocations: 33.84 kB / 0.512 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001736/0.3073, allocations: 156.8 kB / 0.5122 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002274/0.3075, allocations: 246.9 kB / 0.5124 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006012/0.3081, allocations: 493.5 kB / 0.5129 GB, free: 1.516 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3082, allocations: 1.25 kB / 0.5129 GB, free: 1.516 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3082, allocations: 0 / 0.5129 GB, free: 1.516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.3082, allocations: 0 / 0.5129 GB, free: 1.516 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.001307/0.3095, allocations: 0.8104 MB / 0.5137 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.3095, allocations: 13.36 kB / 0.5137 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.104e-05/0.3096, allocations: 76.5 kB / 0.5138 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.3098, allocations: 53.98 kB / 0.5138 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008081/0.3106, allocations: 469.5 kB / 0.5143 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.38e-05/0.3106, allocations: 32.19 kB / 0.5143 GB, free: 476 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.224e-05/0.3107, allocations: 36.19 kB / 0.5143 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006528/0.3114, allocations: 459.5 kB / 0.5148 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.3114, allocations: 0 / 0.5148 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.895e-05/0.3114, allocations: 16.38 kB / 0.5148 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.3114, allocations: 9.578 kB / 0.5148 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004697/0.3119, allocations: 305 kB / 0.5151 GB, free: 104 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002139/0.3141, allocations: 1.774 MB / 0.5168 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002344/0.3143, allocations: 148.5 kB / 0.517 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.849e-05/0.3144, allocations: 54.69 kB / 0.517 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.3144, allocations: 2.531 kB / 0.517 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.3145, allocations: 36.64 kB / 0.5171 GB, free: 14.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.462e-06/0.3145, allocations: 0 / 0.5171 GB, free: 14.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001089/0.3156, allocations: 0.6291 MB / 0.5177 GB, free: 13.99 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.3156, allocations: 105.9 kB / 0.5178 GB, free: 13.87 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004361/0.3161, allocations: 369.5 kB / 0.5181 GB, free: 13.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.3161, allocations: 26.27 kB / 0.5181 GB, free: 13.65 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002175/0.3163, allocations: 296.3 kB / 0.5184 GB, free: 13.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.26e-05/0.3164, allocations: 60.39 kB / 0.5185 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.3165, allocations: 65.05 kB / 0.5186 GB, free: 13.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.3166, allocations: 347.6 kB / 0.5189 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.3168, allocations: 44.94 kB / 0.5189 GB, free: 12.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.317, allocations: 193.3 kB / 0.5191 GB, free: 12.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003237/0.3173, allocations: 271.7 kB / 0.5194 GB, free: 12.51 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3173, allocations: 1.094 kB / 0.5194 GB, free: 12.51 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004377/0.3178, allocations: 293.9 kB / 0.5197 GB, free: 12.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.3178, allocations: 7.75 kB / 0.5197 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3178, allocations: 5.281 kB / 0.5197 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/0.3178, allocations: 7.062 kB / 0.5197 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.3181, allocations: 77.59 kB / 0.5197 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.3181, allocations: 7.531 kB / 0.5198 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000182/0.3183, allocations: 11.64 kB / 0.5198 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/0.3183, allocations: 13 kB / 0.5198 GB, free: 12.35 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.0001802/0.3185, allocations: 190.7 kB / 0.52 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.894e-05/0.3186, allocations: 41.66 kB / 0.52 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002951/0.3189, allocations: 164.7 kB / 0.5202 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3189, allocations: 3.25 kB / 0.5202 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.3189, allocations: 1.281 kB / 0.5202 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.3189, allocations: 2.375 kB / 0.5202 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006949/0.3196, allocations: 0.5247 MB / 0.5207 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.3197, allocations: 6.25 kB / 0.5207 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002013/0.3199, allocations: 40.22 kB / 0.5207 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.3199, allocations: 1.438 kB / 0.5207 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.3199, allocations: 3.172 kB / 0.5207 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.3199, allocations: 2.047 kB / 0.5207 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.3199, allocations: 5.375 kB / 0.5207 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004298/0.3203, allocations: 406.5 kB / 0.5211 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.272e-05/0.3204, allocations: 112 kB / 0.5212 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.817e-05/0.3205, allocations: 11.25 kB / 0.5212 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.3207, allocations: 10.47 kB / 0.5212 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.944e-05/0.3207, allocations: 9.828 kB / 0.5213 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.3207, allocations: 5.125 kB / 0.5213 GB, free: 11.22 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002639/0.321, allocations: 255 kB / 0.5215 GB, free: 11.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.321, allocations: 0 / 0.5215 GB, free: 11.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000433/0.3215, allocations: 73.34 kB / 0.5216 GB, free: 11.08 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.0006421/0.3221, allocations: 0.9374 MB / 0.5225 GB, free: 10.24 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002721/0.3224, allocations: 157 kB / 0.5226 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3224, allocations: 3.938 kB / 0.5226 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.196e-05/0.3225, allocations: 57.58 kB / 0.5227 GB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007063/0.3232, allocations: 98.36 kB / 0.5228 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003856/0.3271, allocations: 3.421 MB / 0.5261 GB, free: 7.688 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004117/0.3275, allocations: 0.8379 MB / 0.5269 GB, free: 6.977 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001794/0.3277, allocations: 51.31 kB / 0.527 GB, free: 6.957 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002026/0.3279, allocations: 148.8 kB / 0.5271 GB, free: 6.848 MB / 398.1 MB Notification: Performance of SimCode: time 1.753e-06/0.3279, allocations: 1.25 kB / 0.5271 GB, free: 6.848 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02575/0.3537, allocations: 7.024 MB / 0.534 GB, free: 4.824 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.859/8.213, allocations: 4.688 kB / 0.534 GB, free: 4.824 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)