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.001526/0.001526, allocations: 109.6 kB / 17.06 MB, free: 6.004 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.001744/0.001744, allocations: 191 kB / 18 MB, free: 5.09 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.357/1.357, 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.1915/0.1915, allocations: 38.04 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 59.91 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3221, allocations: 58.05 MB / 0.5036 GB, free: 7.527 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.00613/0.3282, allocations: 4.338 MB / 0.5079 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.3301, allocations: 0.9402 MB / 0.5088 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000368/0.3304, allocations: 11.84 kB / 0.5088 GB, free: 3.848 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002821/0.3307, allocations: 54.75 kB / 0.5088 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008472/0.3316, allocations: 247.1 kB / 0.5091 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003926/0.332, allocations: 100.9 kB / 0.5092 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007673/0.3328, allocations: 0.4973 MB / 0.5097 GB, free: 3.414 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003117/0.3331, allocations: 155 kB / 0.5098 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004962/0.3336, allocations: 222.4 kB / 0.51 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006036/0.3343, allocations: 269.3 kB / 0.5103 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.3344, allocations: 24.16 kB / 0.5103 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001477/0.3345, allocations: 23.38 kB / 0.5103 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002325/0.3348, allocations: 147.7 kB / 0.5105 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002965/0.3351, allocations: 177 kB / 0.5106 GB, free: 3.016 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005773/0.3357, allocations: 370.2 kB / 0.511 GB, free: 2.871 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.3357, allocations: 1.156 kB / 0.511 GB, free: 2.871 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3357, allocations: 0 / 0.511 GB, free: 2.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.356e-05/0.3357, allocations: 3.938 kB / 0.511 GB, free: 2.867 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.001745/0.3375, allocations: 0.6665 MB / 0.5116 GB, free: 2.336 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.3375, allocations: 12.48 kB / 0.5116 GB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000104/0.3377, allocations: 62.3 kB / 0.5117 GB, free: 2.277 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.3378, allocations: 42.92 kB / 0.5117 GB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007957/0.3386, allocations: 388 kB / 0.5121 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.3386, allocations: 22.16 kB / 0.5121 GB, free: 1.953 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.057e-05/0.3387, allocations: 28.86 kB / 0.5122 GB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006948/0.3394, allocations: 353.1 kB / 0.5125 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.3394, allocations: 1.688 kB / 0.5125 GB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.281e-05/0.3395, allocations: 10.19 kB / 0.5125 GB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000133/0.3396, allocations: 25.86 kB / 0.5125 GB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005302/0.3402, allocations: 246.9 kB / 0.5128 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.342, allocations: 1.368 MB / 0.5141 GB, free: 0.625 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000371/0.3424, allocations: 163.6 kB / 0.5143 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001905/0.3426, allocations: 96.59 kB / 0.5144 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.3426, allocations: 6.375 kB / 0.5144 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.3426, allocations: 36.75 kB / 0.5144 GB, free: 456 kB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 2.043e-06/0.3426, allocations: 0 / 0.5144 GB, free: 456 kB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001578/0.3442, allocations: 0.7682 MB / 0.5151 GB, free: 15.88 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.145e-05/0.3443, allocations: 80.34 kB / 0.5152 GB, free: 15.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003978/0.3447, allocations: 300.7 kB / 0.5155 GB, free: 15.63 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.403e-05/0.3448, allocations: 29.7 kB / 0.5155 GB, free: 15.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.3449, allocations: 224.4 kB / 0.5158 GB, free: 15.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.33e-05/0.345, allocations: 56.06 kB / 0.5158 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.446e-05/0.3451, allocations: 53.27 kB / 0.5159 GB, free: 15.33 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3452, allocations: 343.1 kB / 0.5162 GB, free: 15 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.3454, allocations: 67.44 kB / 0.5162 GB, free: 14.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.3456, allocations: 173.8 kB / 0.5164 GB, free: 14.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003318/0.3459, allocations: 246.9 kB / 0.5166 GB, free: 14.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3459, allocations: 5.438 kB / 0.5167 GB, free: 14.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006425/0.3466, allocations: 314.4 kB / 0.517 GB, free: 14.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.3466, allocations: 6.75 kB / 0.517 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.3466, allocations: 3.781 kB / 0.517 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002547/0.3469, allocations: 60.23 kB / 0.517 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.3471, allocations: 52.27 kB / 0.5171 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001657/0.3488, allocations: 1.611 MB / 0.5186 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002206/0.349, allocations: 10.22 kB / 0.5187 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.118e-05/0.3491, allocations: 10.2 kB / 0.5187 GB, free: 12.99 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.0002514/0.3493, allocations: 172.2 kB / 0.5188 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.199e-05/0.3494, allocations: 28.17 kB / 0.5189 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004971/0.3499, allocations: 247.9 kB / 0.5191 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.3499, allocations: 2.188 kB / 0.5191 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3499, allocations: 1.625 kB / 0.5191 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3499, allocations: 1.984 kB / 0.5191 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.351, allocations: 0.6372 MB / 0.5197 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.351, allocations: 3.938 kB / 0.5197 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.3511, allocations: 25.55 kB / 0.5197 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002131/0.3514, allocations: 60.11 kB / 0.5198 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.3514, allocations: 4.484 kB / 0.5198 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001423/0.3528, allocations: 1.601 MB / 0.5214 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.3528, allocations: 1.828 kB / 0.5214 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005902/0.3534, allocations: 410.3 kB / 0.5218 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.3536, allocations: 106.3 kB / 0.5219 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.656e-05/0.3536, allocations: 4.891 kB / 0.5219 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.3538, allocations: 8.844 kB / 0.5219 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.3538, allocations: 18.3 kB / 0.5219 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.3538, allocations: 8.844 kB / 0.5219 GB, free: 10.41 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002545/0.3541, allocations: 220.8 kB / 0.5221 GB, free: 10.29 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3541, allocations: 0 / 0.5221 GB, free: 10.29 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004706/0.3546, allocations: 66.31 kB / 0.5222 GB, free: 10.28 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.0008898/0.3555, allocations: 0.9442 MB / 0.5231 GB, free: 9.496 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006147/0.3561, allocations: 303.2 kB / 0.5234 GB, free: 9.332 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3561, allocations: 0 / 0.5234 GB, free: 9.332 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003626/0.3565, allocations: 214.2 kB / 0.5236 GB, free: 9.191 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005522/0.3571, allocations: 66.53 kB / 0.5237 GB, free: 9.172 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004301/0.3614, allocations: 3.049 MB / 0.5266 GB, free: 7.059 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004812/0.3619, allocations: 0.8098 MB / 0.5274 GB, free: 6.348 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001949/0.3621, allocations: 43.91 kB / 0.5275 GB, free: 6.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001846/0.3623, allocations: 99.52 kB / 0.5276 GB, free: 6.27 MB / 398.1 MB Notification: Performance of SimCode: time 1.051e-06/0.3623, allocations: 5.406 kB / 0.5276 GB, free: 6.266 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03055/0.3929, allocations: 6.07 MB / 0.5335 GB, free: 4.586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/10.45, allocations: 8.953 kB / 0.5335 GB, free: 4.578 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)