Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",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.001092/0.001092, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001127/0.001127, allocations: 200 kB / 18.01 MB, free: 5.047 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.386/1.386, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1788/0.1788, allocations: 38.03 MB / 329.9 MB, free: 8.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002545/0.002545, allocations: 67.88 kB / 457.6 MB, free: 7.309 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3815/0.3841, allocations: 58.06 MB / 0.5036 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.006833/0.391, allocations: 5.507 MB / 0.509 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002394/0.3934, allocations: 1.359 MB / 0.5103 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005211/0.394, allocations: 18.81 kB / 0.5103 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005725/0.3946, allocations: 137.1 kB / 0.5105 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001287/0.3959, allocations: 391.4 kB / 0.5108 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005207/0.3964, allocations: 153.7 kB / 0.511 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001291/0.3977, allocations: 0.7777 MB / 0.5117 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004056/0.3982, allocations: 227.7 kB / 0.512 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007215/0.3989, allocations: 349 kB / 0.5123 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006868/0.3996, allocations: 403.6 kB / 0.5127 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.254e-05/0.3997, allocations: 40.06 kB / 0.5127 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.3998, allocations: 40.16 kB / 0.5128 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002186/0.4, allocations: 206.2 kB / 0.513 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002743/0.4003, allocations: 278 kB / 0.5132 GB, free: 1.375 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007858/0.4011, allocations: 0.5812 MB / 0.5138 GB, free: 1.137 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4011, allocations: 3.938 kB / 0.5138 GB, free: 1.133 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.4011, allocations: 0 / 0.5138 GB, free: 1.133 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.78e-05/0.4012, allocations: 1.406 kB / 0.5138 GB, free: 1.133 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001635/0.4028, allocations: 0.898 MB / 0.5147 GB, free: 472 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.4029, allocations: 12.98 kB / 0.5147 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.896e-05/0.4029, allocations: 84.44 kB / 0.5148 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.4031, allocations: 71.62 kB / 0.5148 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008431/0.4039, allocations: 0.5099 MB / 0.5153 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.254e-05/0.404, allocations: 29.83 kB / 0.5154 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.756e-05/0.4041, allocations: 39.44 kB / 0.5154 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000904/0.405, allocations: 0.5336 MB / 0.5159 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.405, allocations: 5.438 kB / 0.5159 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.544e-05/0.4051, allocations: 21.23 kB / 0.5159 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.119e-05/0.4051, allocations: 19.45 kB / 0.516 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007836/0.4059, allocations: 402.6 kB / 0.5163 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002894/0.4088, allocations: 1.916 MB / 0.5182 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006328/0.4095, allocations: 336.1 kB / 0.5185 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/0.4098, allocations: 192.4 kB / 0.5187 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.4099, allocations: 3.406 kB / 0.5187 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003958/0.4103, allocations: 285.3 kB / 0.519 GB, free: 13.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.084e-06/0.4103, allocations: 0 / 0.519 GB, free: 13.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.002029/0.4123, allocations: 1.197 MB / 0.5202 GB, free: 12.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.295e-05/0.4124, allocations: 166 kB / 0.5203 GB, free: 12.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004812/0.4129, allocations: 398 kB / 0.5207 GB, free: 12.6 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.633e-05/0.413, allocations: 37.25 kB / 0.5207 GB, free: 12.56 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002205/0.4132, allocations: 291.3 kB / 0.521 GB, free: 12.33 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.4133, allocations: 125.8 kB / 0.5211 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/0.4134, allocations: 99.44 kB / 0.5212 GB, free: 12.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.4136, allocations: 353.9 kB / 0.5216 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002061/0.4138, allocations: 120.4 kB / 0.5217 GB, free: 11.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002913/0.4141, allocations: 296.1 kB / 0.522 GB, free: 11.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005317/0.4146, allocations: 481.6 kB / 0.5224 GB, free: 11.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.4147, allocations: 1.375 kB / 0.5224 GB, free: 11.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000752/0.4154, allocations: 0.5238 MB / 0.5229 GB, free: 10.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.972e-05/0.4155, allocations: 34.55 kB / 0.523 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.4155, allocations: 6.156 kB / 0.523 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.4155, allocations: 7.938 kB / 0.523 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004292/0.4159, allocations: 111.6 kB / 0.5231 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.598e-05/0.416, allocations: 14.2 kB / 0.5231 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000291/0.4163, allocations: 21.61 kB / 0.5231 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.529e-05/0.4163, allocations: 32.17 kB / 0.5232 GB, free: 10.85 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * 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.0002833/0.4166, allocations: 243.3 kB / 0.5234 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.506e-05/0.4167, allocations: 53.61 kB / 0.5234 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000742/0.4174, allocations: 457.4 kB / 0.5239 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.4175, allocations: 2.75 kB / 0.5239 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.4175, allocations: 5.375 kB / 0.5239 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.4175, allocations: 2.391 kB / 0.5239 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.419, allocations: 0.9826 MB / 0.5248 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.419, allocations: 1.438 kB / 0.5248 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003151/0.4193, allocations: 64.8 kB / 0.5249 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.4193, allocations: 6.875 kB / 0.5249 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.086e-05/0.4194, allocations: 14.58 kB / 0.5249 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.4194, allocations: 2.781 kB / 0.5249 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.4194, allocations: 1.125 kB / 0.5249 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009927/0.4204, allocations: 0.7054 MB / 0.5256 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002154/0.4206, allocations: 148.7 kB / 0.5258 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.891e-05/0.4207, allocations: 8.812 kB / 0.5258 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002353/0.4209, allocations: 16.09 kB / 0.5258 GB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.964e-05/0.421, allocations: 30.52 kB / 0.5258 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.29e-05/0.4211, allocations: 36.59 kB / 0.5259 GB, free: 9.273 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003766/0.4215, allocations: 268.3 kB / 0.5261 GB, free: 9.145 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4215, allocations: 0 / 0.5261 GB, free: 9.145 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005657/0.4221, allocations: 102.4 kB / 0.5262 GB, free: 9.133 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.001313/0.4234, allocations: 1.26 MB / 0.5274 GB, free: 8.211 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006906/0.4241, allocations: 400.7 kB / 0.5278 GB, free: 8.047 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4241, allocations: 0 / 0.5278 GB, free: 8.047 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003442/0.4245, allocations: 264.2 kB / 0.5281 GB, free: 7.914 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006796/0.4252, allocations: 107.5 kB / 0.5282 GB, free: 7.871 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005471/0.4306, allocations: 4.132 MB / 0.5322 GB, free: 5.234 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005027/0.4312, allocations: 0.8843 MB / 0.5331 GB, free: 4.516 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003314/0.4315, allocations: 85.7 kB / 0.5332 GB, free: 4.496 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002323/0.4318, allocations: 174.5 kB / 0.5333 GB, free: 4.367 MB / 398.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4318, allocations: 0 / 0.5333 GB, free: 4.367 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03215/0.4639, allocations: 8.696 MB / 0.5418 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.819/9.283, allocations: 1.188 kB / 0.5418 GB, free: 0.5508 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)