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.001391/0.001391, allocations: 111.7 kB / 17.06 MB, free: 5.988 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.001308/0.001308, allocations: 195.9 kB / 18 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.319/1.319, 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.1772/0.1772, allocations: 38.03 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 63.91 kB / 457.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2949, allocations: 58.05 MB / 0.5036 GB, free: 7.844 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.OnePhase): time 0.005575/0.3006, allocations: 5.499 MB / 0.509 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.3025, allocations: 1.301 MB / 0.5102 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002442/0.3028, allocations: 18.72 kB / 0.5103 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004134/0.3032, allocations: 130.1 kB / 0.5104 GB, free: 3.023 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008028/0.304, allocations: 377.8 kB / 0.5107 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.3043, allocations: 137.1 kB / 0.5109 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007119/0.3051, allocations: 0.7539 MB / 0.5116 GB, free: 2.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000277/0.3054, allocations: 202.3 kB / 0.5118 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000486/0.3058, allocations: 342.8 kB / 0.5121 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005705/0.3064, allocations: 385 kB / 0.5125 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.833e-05/0.3065, allocations: 35.78 kB / 0.5125 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.547e-05/0.3066, allocations: 41.38 kB / 0.5126 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001947/0.3068, allocations: 192.4 kB / 0.5128 GB, free: 1.957 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000236/0.3071, allocations: 254 kB / 0.513 GB, free: 1.809 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005908/0.3077, allocations: 0.532 MB / 0.5135 GB, free: 1.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3077, allocations: 0 / 0.5135 GB, free: 1.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3077, allocations: 0 / 0.5135 GB, free: 1.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.3077, allocations: 1.094 kB / 0.5135 GB, free: 1.594 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.001264/0.309, allocations: 0.8138 MB / 0.5143 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.309, allocations: 10.28 kB / 0.5143 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.168e-05/0.3091, allocations: 89.39 kB / 0.5144 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.999e-05/0.3092, allocations: 54.72 kB / 0.5145 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007671/0.31, allocations: 497.5 kB / 0.5149 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.31, allocations: 32.11 kB / 0.515 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.811e-05/0.3101, allocations: 37.84 kB / 0.515 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000723/0.3108, allocations: 0.4957 MB / 0.5155 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.3108, allocations: 0 / 0.5155 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.743e-05/0.3109, allocations: 16.22 kB / 0.5155 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.503e-05/0.3109, allocations: 25.17 kB / 0.5155 GB, free: 260 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000553/0.3115, allocations: 364.8 kB / 0.5159 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002757/0.3142, allocations: 2.073 MB / 0.5179 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004783/0.3147, allocations: 247 kB / 0.5181 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002395/0.315, allocations: 129.8 kB / 0.5183 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.315, allocations: 7.641 kB / 0.5183 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.3151, allocations: 36.03 kB / 0.5183 GB, free: 14.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 1.794e-06/0.3151, allocations: 1.188 kB / 0.5183 GB, free: 14.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.001272/0.3163, allocations: 0.7717 MB / 0.5191 GB, free: 13.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.3164, allocations: 83.73 kB / 0.5191 GB, free: 13.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004046/0.3168, allocations: 379.8 kB / 0.5195 GB, free: 13.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.3168, allocations: 27.52 kB / 0.5195 GB, free: 13.47 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001874/0.317, allocations: 299.9 kB / 0.5198 GB, free: 13.22 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.539e-05/0.3171, allocations: 90.44 kB / 0.5199 GB, free: 13.15 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.3172, allocations: 83.44 kB / 0.52 GB, free: 13.1 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.3174, allocations: 348 kB / 0.5203 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.3175, allocations: 86.06 kB / 0.5204 GB, free: 12.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002566/0.3178, allocations: 276.9 kB / 0.5207 GB, free: 12.47 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004467/0.3182, allocations: 408.5 kB / 0.521 GB, free: 12.12 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.3182, allocations: 1.156 kB / 0.521 GB, free: 12.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007487/0.319, allocations: 453.4 kB / 0.5215 GB, free: 11.92 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.319, allocations: 12.81 kB / 0.5215 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.3191, allocations: 6.344 kB / 0.5215 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002017/0.3193, allocations: 51.36 kB / 0.5215 GB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002751/0.3195, allocations: 87.25 kB / 0.5216 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001373/0.3209, allocations: 1.608 MB / 0.5232 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002839/0.3212, allocations: 23.45 kB / 0.5232 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.859e-05/0.3213, allocations: 17.19 kB / 0.5232 GB, free: 10.36 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.000255/0.3215, allocations: 208.5 kB / 0.5234 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.535e-05/0.3216, allocations: 40.2 kB / 0.5235 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003681/0.322, allocations: 242.8 kB / 0.5237 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.322, allocations: 3.406 kB / 0.5237 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.322, allocations: 1.375 kB / 0.5237 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.322, allocations: 5.484 kB / 0.5237 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.323, allocations: 0.6914 MB / 0.5244 GB, free: 9.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.3231, allocations: 5.219 kB / 0.5244 GB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002356/0.3233, allocations: 46.97 kB / 0.5244 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.3233, allocations: 1.906 kB / 0.5244 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.3233, allocations: 9.844 kB / 0.5245 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3233, allocations: 3.188 kB / 0.5245 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3234, allocations: 1.562 kB / 0.5245 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005474/0.3239, allocations: 437.5 kB / 0.5249 GB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001479/0.3241, allocations: 127.6 kB / 0.525 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.349e-05/0.3241, allocations: 3.172 kB / 0.525 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.3243, allocations: 8.719 kB / 0.525 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.3243, allocations: 16.75 kB / 0.525 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.3243, allocations: 4.781 kB / 0.525 GB, free: 9.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002844/0.3246, allocations: 259.7 kB / 0.5253 GB, free: 9.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3246, allocations: 4 kB / 0.5253 GB, free: 9.031 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005027/0.3251, allocations: 90.77 kB / 0.5254 GB, free: 9.02 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.0007649/0.3259, allocations: 0.9563 MB / 0.5263 GB, free: 8.219 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007098/0.3266, allocations: 389.7 kB / 0.5267 GB, free: 8.012 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3267, allocations: 6.031 kB / 0.5267 GB, free: 8.008 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.3268, allocations: 90.73 kB / 0.5268 GB, free: 7.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006542/0.3275, allocations: 99.72 kB / 0.5269 GB, free: 7.938 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004891/0.3324, allocations: 3.72 MB / 0.5305 GB, free: 5.391 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005297/0.3329, allocations: 0.8568 MB / 0.5313 GB, free: 4.672 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000302/0.3333, allocations: 89.05 kB / 0.5314 GB, free: 4.645 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002223/0.3335, allocations: 147.6 kB / 0.5316 GB, free: 4.535 MB / 398.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3335, allocations: 0 / 0.5316 GB, free: 4.535 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03272/0.3662, allocations: 7.623 MB / 0.539 GB, free: 1.559 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/10.55, allocations: 8.75 kB / 0.539 GB, free: 1.555 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)