Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.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.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron",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.00106/0.001061, allocations: 112 kB / 17.06 MB, free: 5.992 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.001095/0.001095, allocations: 194.9 kB / 18.01 MB, free: 5.074 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.312/1.312, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1718/0.1718, allocations: 38.02 MB / 329.9 MB, free: 8.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 63.91 kB / 457.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2986, allocations: 58.05 MB / 0.5036 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.004591/0.3033, allocations: 4.432 MB / 0.5079 GB, free: 4.457 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.3052, allocations: 1.42 MB / 0.5093 GB, free: 3.469 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001868/0.3054, allocations: 16.34 kB / 0.5093 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009279/0.3063, allocations: 371.6 kB / 0.5097 GB, free: 3.238 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005009/0.3069, allocations: 261.9 kB / 0.5099 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000589/0.3075, allocations: 235.9 kB / 0.5101 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005177/0.308, allocations: 0.5603 MB / 0.5107 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003889/0.3084, allocations: 281.5 kB / 0.511 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003249/0.3087, allocations: 265.9 kB / 0.5112 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004469/0.3092, allocations: 358.9 kB / 0.5116 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.284e-05/0.3092, allocations: 38.56 kB / 0.5116 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004017/0.3097, allocations: 221.4 kB / 0.5118 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002292/0.3099, allocations: 244.2 kB / 0.512 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002387/0.3102, allocations: 254 kB / 0.5123 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007303/0.3109, allocations: 0.6768 MB / 0.5129 GB, free: 1.883 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3109, allocations: 1.438 kB / 0.5129 GB, free: 1.883 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3109, allocations: 0 / 0.5129 GB, free: 1.883 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.3109, allocations: 0 / 0.5129 GB, free: 1.883 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001268/0.3122, allocations: 0.788 MB / 0.5137 GB, free: 1.285 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.3122, allocations: 13.55 kB / 0.5137 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.99e-05/0.3123, allocations: 88.58 kB / 0.5138 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005658/0.3129, allocations: 86.22 kB / 0.5139 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006843/0.3136, allocations: 430.7 kB / 0.5143 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.3136, allocations: 24.59 kB / 0.5143 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.3138, allocations: 58.16 kB / 0.5144 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009679/0.3148, allocations: 0.6756 MB / 0.515 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.3148, allocations: 9.188 kB / 0.5151 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.106e-05/0.3148, allocations: 19.47 kB / 0.5151 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001843/0.315, allocations: 52.39 kB / 0.5151 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.3161, allocations: 0.6674 MB / 0.5158 GB, free: 308 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003931/0.32, allocations: 2.514 MB / 0.5182 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005794/0.3206, allocations: 335.1 kB / 0.5185 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003102/0.321, allocations: 231 kB / 0.5188 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.47e-05/0.321, allocations: 7.25 kB / 0.5188 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.321, allocations: 35.25 kB / 0.5188 GB, free: 14.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.395e-06/0.3211, allocations: 0 / 0.5188 GB, free: 14.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.002262/0.3233, allocations: 1.365 MB / 0.5201 GB, free: 13.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/0.3234, allocations: 84.92 kB / 0.5202 GB, free: 13.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003084/0.3237, allocations: 303.5 kB / 0.5205 GB, free: 13.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.3237, allocations: 31.86 kB / 0.5205 GB, free: 13.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.3239, allocations: 266.6 kB / 0.5208 GB, free: 13.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/0.324, allocations: 159.9 kB / 0.5209 GB, free: 12.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.3242, allocations: 91.86 kB / 0.521 GB, free: 12.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.3243, allocations: 346.3 kB / 0.5214 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00029/0.3246, allocations: 200.6 kB / 0.5216 GB, free: 12.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004006/0.325, allocations: 373.6 kB / 0.5219 GB, free: 12.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000775/0.3258, allocations: 0.6063 MB / 0.5225 GB, free: 11.89 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.3258, allocations: 5 kB / 0.5225 GB, free: 11.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009473/0.3268, allocations: 0.6316 MB / 0.5231 GB, free: 11.64 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.3268, allocations: 7.531 kB / 0.5231 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.3268, allocations: 9.281 kB / 0.5231 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.3268, allocations: 8.344 kB / 0.5232 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004622/0.3273, allocations: 114.1 kB / 0.5233 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.3273, allocations: 8.234 kB / 0.5233 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002696/0.3276, allocations: 20.67 kB / 0.5233 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.048e-05/0.3277, allocations: 23.08 kB / 0.5233 GB, free: 11.62 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * 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.0002633/0.3279, allocations: 219.3 kB / 0.5235 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.501e-05/0.328, allocations: 45.83 kB / 0.5236 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007975/0.3288, allocations: 498 kB / 0.524 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.6e-05/0.3289, allocations: 12.88 kB / 0.5241 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.3289, allocations: 0 / 0.5241 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.3289, allocations: 3.188 kB / 0.5241 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.3309, allocations: 1.102 MB / 0.5251 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.3309, allocations: 2.375 kB / 0.5251 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003838/0.3313, allocations: 72.98 kB / 0.5252 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.3313, allocations: 5.906 kB / 0.5252 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.121e-05/0.3313, allocations: 10.36 kB / 0.5252 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.3314, allocations: 2.078 kB / 0.5252 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3314, allocations: 2.625 kB / 0.5252 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.3327, allocations: 0.8383 MB / 0.526 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001301/0.3328, allocations: 109.1 kB / 0.5261 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.598e-05/0.3329, allocations: 9.328 kB / 0.5262 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002241/0.3331, allocations: 15.59 kB / 0.5262 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.612e-05/0.3332, allocations: 29.45 kB / 0.5262 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.307e-05/0.3332, allocations: 17.12 kB / 0.5262 GB, free: 10.06 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000255/0.3335, allocations: 209.8 kB / 0.5264 GB, free: 9.945 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.393e-06/0.3335, allocations: 0 / 0.5264 GB, free: 9.945 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006145/0.3341, allocations: 114.6 kB / 0.5265 GB, free: 9.926 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.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 (33): * Single equations (assignments): 30 * Array equations: 2 * 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.001607/0.3357, allocations: 1.394 MB / 0.5279 GB, free: 8.988 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008313/0.3366, allocations: 0.4912 MB / 0.5284 GB, free: 8.836 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.3366, allocations: 2.75 kB / 0.5284 GB, free: 8.836 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003101/0.3369, allocations: 224.6 kB / 0.5286 GB, free: 8.762 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000546/0.3374, allocations: 70.84 kB / 0.5286 GB, free: 8.734 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005266/0.3427, allocations: 4.41 MB / 0.533 GB, free: 6.008 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004533/0.3432, allocations: 0.8686 MB / 0.5338 GB, free: 5.293 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003502/0.3436, allocations: 130.5 kB / 0.5339 GB, free: 5.273 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000214/0.3438, allocations: 144.2 kB / 0.5341 GB, free: 5.168 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3438, allocations: 0 / 0.5341 GB, free: 5.168 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.025/0.3688, allocations: 7.932 MB / 0.5418 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.846/8.215, allocations: 0 / 0.5418 GB, free: 0.7148 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)