Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.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.Transformation.OnePhase,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_OnePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_OnePhase",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.001346/0.001346, allocations: 107.8 kB / 17.06 MB, free: 5.82 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.001374/0.001374, allocations: 195.9 kB / 18 MB, free: 4.965 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.415/1.415, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1865/0.1865, allocations: 38.03 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 63.89 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3223, allocations: 58.04 MB / 0.5036 GB, free: 7.535 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase): time 0.005501/0.3279, allocations: 5.496 MB / 0.509 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002203/0.3301, allocations: 1.305 MB / 0.5102 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003742/0.3305, allocations: 18.78 kB / 0.5103 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005037/0.3311, allocations: 131 kB / 0.5104 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001082/0.3322, allocations: 375.5 kB / 0.5107 GB, free: 2.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004026/0.3326, allocations: 128.7 kB / 0.5109 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009308/0.3335, allocations: 0.7487 MB / 0.5116 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002763/0.3338, allocations: 213.2 kB / 0.5118 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004566/0.3343, allocations: 333.1 kB / 0.5121 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005801/0.3349, allocations: 387.5 kB / 0.5125 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.323e-05/0.3349, allocations: 37.41 kB / 0.5125 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001068/0.3351, allocations: 35.69 kB / 0.5126 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002075/0.3353, allocations: 192.5 kB / 0.5127 GB, free: 1.648 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002545/0.3355, allocations: 251.1 kB / 0.513 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006923/0.3362, allocations: 0.5349 MB / 0.5135 GB, free: 1.285 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3362, allocations: 1.062 kB / 0.5135 GB, free: 1.285 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3363, allocations: 0.5156 kB / 0.5135 GB, free: 1.285 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.3363, allocations: 4 kB / 0.5135 GB, free: 1.281 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: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001342/0.3376, allocations: 0.8104 MB / 0.5143 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.3377, allocations: 8.938 kB / 0.5143 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.712e-05/0.3377, allocations: 83.73 kB / 0.5144 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.777e-05/0.3378, allocations: 57.52 kB / 0.5144 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006956/0.3385, allocations: 0.4923 MB / 0.5149 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.518e-05/0.3386, allocations: 28.69 kB / 0.515 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.414e-05/0.3387, allocations: 37.98 kB / 0.515 GB, free: 220 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007372/0.3394, allocations: 0.4993 MB / 0.5155 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.3394, allocations: 5.156 kB / 0.5155 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.149e-05/0.3395, allocations: 13.02 kB / 0.5155 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.626e-05/0.3395, allocations: 25.11 kB / 0.5155 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000604/0.3401, allocations: 369.7 kB / 0.5159 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002835/0.343, allocations: 2.064 MB / 0.5179 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005007/0.3435, allocations: 239.8 kB / 0.5181 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002432/0.3437, allocations: 129.8 kB / 0.5182 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.3438, allocations: 7.297 kB / 0.5182 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.3438, allocations: 37.62 kB / 0.5183 GB, free: 14.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 1.944e-06/0.3438, allocations: 3.938 kB / 0.5183 GB, free: 14.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.001355/0.3452, allocations: 0.7748 MB / 0.519 GB, free: 13.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.702e-05/0.3453, allocations: 83.58 kB / 0.5191 GB, free: 13.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004241/0.3457, allocations: 384 kB / 0.5195 GB, free: 13.19 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.3457, allocations: 30.83 kB / 0.5195 GB, free: 13.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002303/0.346, allocations: 299.2 kB / 0.5198 GB, free: 12.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.43e-05/0.346, allocations: 86.59 kB / 0.5199 GB, free: 12.85 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.3462, allocations: 80.09 kB / 0.52 GB, free: 12.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.3463, allocations: 350.1 kB / 0.5203 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.3465, allocations: 84.61 kB / 0.5204 GB, free: 12.45 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002966/0.3468, allocations: 282.2 kB / 0.5206 GB, free: 12.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004926/0.3473, allocations: 402.8 kB / 0.521 GB, free: 11.81 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3473, allocations: 6 kB / 0.521 GB, free: 11.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007326/0.348, allocations: 453 kB / 0.5215 GB, free: 11.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.3481, allocations: 8.406 kB / 0.5215 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.3481, allocations: 7.703 kB / 0.5215 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001995/0.3483, allocations: 51.14 kB / 0.5215 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002581/0.3486, allocations: 84.3 kB / 0.5216 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001519/0.3501, allocations: 1.613 MB / 0.5232 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002336/0.3503, allocations: 20.31 kB / 0.5232 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.838e-05/0.3504, allocations: 24.5 kB / 0.5232 GB, free: 10.05 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,trafo.tap_2_internal,trafo.tap_1_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002408/0.3506, allocations: 201.2 kB / 0.5234 GB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.552e-05/0.3507, allocations: 41.58 kB / 0.5235 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003641/0.3511, allocations: 244.1 kB / 0.5237 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3511, allocations: 2.75 kB / 0.5237 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.3511, allocations: 0 / 0.5237 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3511, allocations: 4.656 kB / 0.5237 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009548/0.3521, allocations: 0.6839 MB / 0.5244 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.3521, allocations: 5.062 kB / 0.5244 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000222/0.3523, allocations: 47.92 kB / 0.5244 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.3523, allocations: 1.25 kB / 0.5244 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.3523, allocations: 7.484 kB / 0.5244 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.3524, allocations: 2.469 kB / 0.5244 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3524, allocations: 5.594 kB / 0.5244 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005221/0.3529, allocations: 438.5 kB / 0.5249 GB, free: 8.996 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.353, allocations: 127.8 kB / 0.525 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.729e-05/0.3531, allocations: 11.58 kB / 0.525 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.3532, allocations: 3.922 kB / 0.525 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.3533, allocations: 19.84 kB / 0.525 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.3533, allocations: 6.688 kB / 0.525 GB, free: 8.855 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000275/0.3536, allocations: 259.2 kB / 0.5253 GB, free: 8.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3536, allocations: 0 / 0.5253 GB, free: 8.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004506/0.3541, allocations: 90.31 kB / 0.5254 GB, free: 8.719 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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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.0008137/0.3549, allocations: 0.9565 MB / 0.5263 GB, free: 7.918 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006633/0.3555, allocations: 393.2 kB / 0.5267 GB, free: 7.707 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3556, allocations: 3.938 kB / 0.5267 GB, free: 7.703 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001311/0.3557, allocations: 87.66 kB / 0.5267 GB, free: 7.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006297/0.3563, allocations: 99.03 kB / 0.5268 GB, free: 7.641 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004655/0.361, allocations: 3.72 MB / 0.5305 GB, free: 5.086 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005149/0.3615, allocations: 0.8587 MB / 0.5313 GB, free: 4.367 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002559/0.3618, allocations: 79.64 kB / 0.5314 GB, free: 4.348 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/0.362, allocations: 147.2 kB / 0.5315 GB, free: 4.238 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.362, allocations: 0 / 0.5315 GB, free: 4.238 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03571/0.3977, allocations: 7.624 MB / 0.539 GB, free: 1.355 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.16, allocations: 5.438 kB / 0.539 GB, free: 1.352 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase_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_AC1ph_DC_Transformation_OnePhase.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase.pipe 2>&1)