Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001219/0.001219, allocations: 108.5 kB / 17.05 MB, free: 6.09 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.001217/0.001217, allocations: 192 kB / 17.99 MB, free: 5.184 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.373/1.373, allocations: 222.9 MB / 241.7 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1894/0.1894, allocations: 38.03 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 67.89 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3627, allocations: 58.05 MB / 0.5036 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Transformer): time 0.007494/0.3703, allocations: 6.533 MB / 0.51 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004972/0.3753, allocations: 2.431 MB / 0.5124 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006508/0.376, allocations: 22.41 kB / 0.5124 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001716/0.3777, allocations: 0.6091 MB / 0.513 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001851/0.3796, allocations: 0.6878 MB / 0.5136 GB, free: 0.543 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001486/0.3811, allocations: 446.8 kB / 0.5141 GB, free: 360 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00226/0.3833, allocations: 1.37 MB / 0.5154 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000933/0.3843, allocations: 484.1 kB / 0.5159 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001114/0.3854, allocations: 0.5859 MB / 0.5164 GB, free: 15.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001488/0.3869, allocations: 0.7829 MB / 0.5172 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002022/0.3871, allocations: 77.78 kB / 0.5173 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008964/0.388, allocations: 278.3 kB / 0.5175 GB, free: 15 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006845/0.3887, allocations: 0.521 MB / 0.5181 GB, free: 14.83 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007058/0.3894, allocations: 0.5271 MB / 0.5186 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001967/0.3914, allocations: 1.336 MB / 0.5199 GB, free: 14.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3914, allocations: 1.094 kB / 0.5199 GB, free: 14.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3914, allocations: 0 / 0.5199 GB, free: 14.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.226e-05/0.3915, allocations: 0 / 0.5199 GB, free: 14.02 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002819/0.3943, allocations: 1.347 MB / 0.5212 GB, free: 13.1 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.3944, allocations: 13.89 kB / 0.5212 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001951/0.3946, allocations: 149.7 kB / 0.5213 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00115/0.3957, allocations: 205.7 kB / 0.5215 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001478/0.3972, allocations: 0.7247 MB / 0.5223 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.076e-05/0.3973, allocations: 61.05 kB / 0.5223 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000235/0.3975, allocations: 98.81 kB / 0.5224 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002171/0.3997, allocations: 1.391 MB / 0.5238 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.482e-05/0.3998, allocations: 11.58 kB / 0.5238 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.682e-05/0.3999, allocations: 37.61 kB / 0.5238 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002969/0.4002, allocations: 120.2 kB / 0.5239 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001902/0.4021, allocations: 1.09 MB / 0.525 GB, free: 11.36 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008002/0.4101, allocations: 5.943 MB / 0.5308 GB, free: 6.762 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.4112, allocations: 0.7035 MB / 0.5315 GB, free: 6.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004961/0.4117, allocations: 322.8 kB / 0.5318 GB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.992e-05/0.4117, allocations: 16.19 kB / 0.5318 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006968/0.4124, allocations: 475.7 kB / 0.5323 GB, free: 5.836 MB / 398.1 MB Notification: Performance of pre-optimization done (n=65): time 2.354e-06/0.4125, allocations: 1.312 kB / 0.5323 GB, free: 5.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.003859/0.4163, allocations: 2.18 MB / 0.5344 GB, free: 4.496 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.4164, allocations: 172.4 kB / 0.5346 GB, free: 4.301 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008781/0.4173, allocations: 0.6336 MB / 0.5352 GB, free: 3.934 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.659e-05/0.4174, allocations: 37.3 kB / 0.5352 GB, free: 3.895 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005971/0.418, allocations: 0.5502 MB / 0.5357 GB, free: 3.402 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002018/0.4182, allocations: 231 kB / 0.536 GB, free: 3.207 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002828/0.4185, allocations: 211.2 kB / 0.5362 GB, free: 3.082 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002621/0.4188, allocations: 396.5 kB / 0.5365 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004971/0.4193, allocations: 338.1 kB / 0.5369 GB, free: 2.555 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008099/0.4201, allocations: 0.7709 MB / 0.5376 GB, free: 1.809 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001637/0.4217, allocations: 1.242 MB / 0.5388 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.319e-05/0.4218, allocations: 5.375 kB / 0.5388 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002798/0.4246, allocations: 1.431 MB / 0.5402 GB, free: 32 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.051e-05/0.4246, allocations: 57.41 kB / 0.5403 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001603/0.4263, allocations: 0.7819 MB / 0.5411 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007543/0.427, allocations: 255.7 kB / 0.5413 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007193/0.4278, allocations: 212.5 kB / 0.5415 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004778/0.4326, allocations: 4.384 MB / 0.5458 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008693/0.4334, allocations: 63.73 kB / 0.5458 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001847/0.4336, allocations: 64.34 kB / 0.5459 GB, free: 11.63 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,12,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008567/0.4345, allocations: 396.6 kB / 0.5463 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002538/0.4348, allocations: 83.05 kB / 0.5464 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001956/0.4367, allocations: 0.8477 MB / 0.5472 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.4368, allocations: 8 kB / 0.5472 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.4368, allocations: 0 / 0.5472 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.4368, allocations: 3.984 kB / 0.5472 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003614/0.4404, allocations: 1.767 MB / 0.5489 GB, free: 8.699 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.4404, allocations: 0 / 0.5489 GB, free: 8.699 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000744/0.4412, allocations: 147.8 kB / 0.5491 GB, free: 8.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.581e-05/0.4412, allocations: 4 kB / 0.5491 GB, free: 8.551 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.46e-05/0.4413, allocations: 27.92 kB / 0.5491 GB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.798e-06/0.4413, allocations: 4 kB / 0.5491 GB, free: 8.52 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/0.4413, allocations: 3.938 kB / 0.5491 GB, free: 8.516 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001975/0.4433, allocations: 1.309 MB / 0.5504 GB, free: 7.168 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004888/0.4438, allocations: 208.5 kB / 0.5506 GB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000269/0.4441, allocations: 20 kB / 0.5506 GB, free: 6.926 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004785/0.4446, allocations: 27.97 kB / 0.5506 GB, free: 6.898 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.4447, allocations: 56.36 kB / 0.5507 GB, free: 6.844 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.301e-05/0.4448, allocations: 35.97 kB / 0.5507 GB, free: 6.809 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000715/0.4455, allocations: 431 kB / 0.5511 GB, free: 6.391 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4455, allocations: 0 / 0.5511 GB, free: 6.391 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00133/0.4469, allocations: 232 kB / 0.5513 GB, free: 6.164 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (trafo.i1[1],trafo.i1[2],trafo.i1[3]) * 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 (64): * Single equations (assignments): 62 * 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.002338/0.4492, allocations: 1.874 MB / 0.5532 GB, free: 4.234 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002284/0.4515, allocations: 1.237 MB / 0.5544 GB, free: 2.961 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.4516, allocations: 64 / 0.5544 GB, free: 2.961 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000632/0.4522, allocations: 470.3 kB / 0.5548 GB, free: 2.488 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009495/0.4532, allocations: 141.5 kB / 0.555 GB, free: 2.355 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01301/0.4662, allocations: 8.101 MB / 0.5629 GB, free: 9.715 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.4672, allocations: 1.118 MB / 0.564 GB, free: 8.566 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007586/0.468, allocations: 282.4 kB / 0.5642 GB, free: 8.285 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005113/0.4685, allocations: 335.3 kB / 0.5646 GB, free: 7.957 MB / 430.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4685, allocations: 4 kB / 0.5646 GB, free: 7.953 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05245/0.521, allocations: 16.06 MB / 0.5803 GB, free: 8.043 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/11.14, allocations: 10.53 kB / 0.5803 GB, free: 8.039 MB / 446.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Transformer.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe 2>&1)