Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",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.001263/0.001263, 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.001325/0.001325, 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.463/1.463, 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.187/0.187, allocations: 38.02 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 71.83 kB / 457.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.3568, allocations: 58.05 MB / 0.5036 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.005438/0.3623, allocations: 4.339 MB / 0.5079 GB, free: 4.531 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002086/0.3644, allocations: 0.9347 MB / 0.5088 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002754/0.3647, allocations: 12 kB / 0.5088 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002516/0.365, allocations: 58.61 kB / 0.5088 GB, free: 3.832 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000803/0.3658, allocations: 240.8 kB / 0.5091 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003427/0.3662, allocations: 96.95 kB / 0.5092 GB, free: 3.652 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008187/0.367, allocations: 0.493 MB / 0.5096 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003391/0.3674, allocations: 154.8 kB / 0.5098 GB, free: 3.383 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004243/0.3678, allocations: 229.2 kB / 0.51 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005678/0.3684, allocations: 260.6 kB / 0.5103 GB, free: 3.188 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.711e-05/0.3684, allocations: 24.47 kB / 0.5103 GB, free: 3.188 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.768e-05/0.3685, allocations: 23.56 kB / 0.5103 GB, free: 3.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002163/0.3687, allocations: 144.1 kB / 0.5104 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002537/0.369, allocations: 183.9 kB / 0.5106 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005413/0.3696, allocations: 361.8 kB / 0.511 GB, free: 2.898 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3696, allocations: 0 / 0.511 GB, free: 2.898 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3696, allocations: 7.938 kB / 0.511 GB, free: 2.891 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.926e-06/0.3696, allocations: 1.062 kB / 0.511 GB, free: 2.891 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.00118/0.3708, allocations: 0.6711 MB / 0.5116 GB, free: 2.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.52e-05/0.3709, allocations: 13.84 kB / 0.5116 GB, free: 2.352 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.384e-05/0.371, allocations: 61.78 kB / 0.5117 GB, free: 2.297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.3711, allocations: 43.92 kB / 0.5117 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006704/0.3717, allocations: 382.2 kB / 0.5121 GB, free: 1.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.679e-05/0.3718, allocations: 22.92 kB / 0.5121 GB, free: 1.977 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.995e-05/0.3719, allocations: 29.89 kB / 0.5122 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007367/0.3726, allocations: 352.7 kB / 0.5125 GB, free: 1.773 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.3727, allocations: 6.016 kB / 0.5125 GB, free: 1.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/0.3727, allocations: 10.25 kB / 0.5125 GB, free: 1.762 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001333/0.3728, allocations: 25.25 kB / 0.5125 GB, free: 1.762 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004895/0.3733, allocations: 243.1 kB / 0.5128 GB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001614/0.375, allocations: 1.368 MB / 0.5141 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003696/0.3754, allocations: 167.9 kB / 0.5143 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.3756, allocations: 96.97 kB / 0.5143 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.3756, allocations: 1.312 kB / 0.5143 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.3756, allocations: 37.5 kB / 0.5144 GB, free: 480 kB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.753e-06/0.3756, allocations: 0 / 0.5144 GB, free: 480 kB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001498/0.3771, allocations: 0.7683 MB / 0.5151 GB, free: 15.9 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/0.3772, allocations: 78.36 kB / 0.5152 GB, free: 15.81 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003932/0.3776, allocations: 297.3 kB / 0.5155 GB, free: 15.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/0.3776, allocations: 30.73 kB / 0.5155 GB, free: 15.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/0.3778, allocations: 224.3 kB / 0.5157 GB, free: 15.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.305e-05/0.3779, allocations: 60.16 kB / 0.5158 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.378, allocations: 53.31 kB / 0.5158 GB, free: 15.35 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.3782, allocations: 338.6 kB / 0.5162 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001314/0.3784, allocations: 68.2 kB / 0.5162 GB, free: 15 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002253/0.3786, allocations: 174.9 kB / 0.5164 GB, free: 14.85 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003811/0.379, allocations: 254.1 kB / 0.5166 GB, free: 14.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.379, allocations: 1.125 kB / 0.5166 GB, free: 14.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006068/0.3796, allocations: 326.7 kB / 0.517 GB, free: 14.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.3797, allocations: 6.656 kB / 0.517 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.3797, allocations: 8.203 kB / 0.517 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002806/0.38, allocations: 54.94 kB / 0.517 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002045/0.3802, allocations: 51.45 kB / 0.5171 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001735/0.3819, allocations: 1.605 MB / 0.5186 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000203/0.3821, allocations: 10.78 kB / 0.5186 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.986e-05/0.3822, allocations: 14.22 kB / 0.5187 GB, free: 13.01 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (28): * Single equations (assignments): 27 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002803/0.3825, allocations: 175.5 kB / 0.5188 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.702e-05/0.3825, allocations: 24.55 kB / 0.5189 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005171/0.3831, allocations: 244.6 kB / 0.5191 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.3831, allocations: 2.75 kB / 0.5191 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3831, allocations: 2.203 kB / 0.5191 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3831, allocations: 0.6562 kB / 0.5191 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.3842, allocations: 0.6409 MB / 0.5197 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.3842, allocations: 1.672 kB / 0.5197 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.3843, allocations: 21.66 kB / 0.5197 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002141/0.3845, allocations: 58.97 kB / 0.5198 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.3846, allocations: 8.922 kB / 0.5198 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001561/0.3861, allocations: 1.601 MB / 0.5214 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.3861, allocations: 8.672 kB / 0.5214 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005662/0.3867, allocations: 406.7 kB / 0.5218 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.301e-05/0.3868, allocations: 106.9 kB / 0.5219 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.741e-05/0.3869, allocations: 5.5 kB / 0.5219 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.387, allocations: 7.438 kB / 0.5219 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.357e-05/0.387, allocations: 14.14 kB / 0.5219 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.3871, allocations: 9.281 kB / 0.5219 GB, free: 10.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002274/0.3873, allocations: 213.2 kB / 0.5221 GB, free: 10.31 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.134e-06/0.3873, allocations: 0 / 0.5221 GB, free: 10.31 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004126/0.3877, allocations: 69.69 kB / 0.5222 GB, free: 10.3 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009616/0.3887, allocations: 0.9413 MB / 0.5231 GB, free: 9.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006542/0.3894, allocations: 312.6 kB / 0.5234 GB, free: 9.352 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3894, allocations: 1.125 kB / 0.5234 GB, free: 9.352 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003761/0.3897, allocations: 206.8 kB / 0.5236 GB, free: 9.215 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005001/0.3903, allocations: 68.17 kB / 0.5237 GB, free: 9.191 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003766/0.394, allocations: 3.057 MB / 0.5266 GB, free: 7.07 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004738/0.3945, allocations: 0.809 MB / 0.5274 GB, free: 6.359 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001583/0.3947, allocations: 45.42 kB / 0.5275 GB, free: 6.352 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.3949, allocations: 98.84 kB / 0.5276 GB, free: 6.281 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3949, allocations: 0 / 0.5276 GB, free: 6.281 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03236/0.4272, allocations: 6.08 MB / 0.5335 GB, free: 4.555 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.91, allocations: 8.875 kB / 0.5335 GB, free: 4.551 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)