Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.001914/0.001914, allocations: 113.4 kB / 17.07 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.002253/0.002254, allocations: 193.4 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.482/1.482, 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.1865/0.1866, allocations: 38.03 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 59.91 kB / 457.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.332, allocations: 58.05 MB / 0.5036 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.004836/0.3368, allocations: 4.064 MB / 0.5076 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001344/0.3382, allocations: 0.9174 MB / 0.5085 GB, free: 3.992 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001754/0.3384, allocations: 10.19 kB / 0.5085 GB, free: 3.988 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002016/0.3386, allocations: 50.14 kB / 0.5085 GB, free: 3.957 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004691/0.3391, allocations: 173.8 kB / 0.5087 GB, free: 3.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.3394, allocations: 92.39 kB / 0.5088 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004127/0.3398, allocations: 400.5 kB / 0.5092 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002375/0.34, allocations: 120.7 kB / 0.5093 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000254/0.3403, allocations: 173 kB / 0.5095 GB, free: 3.508 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003587/0.3406, allocations: 188.3 kB / 0.5096 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.042e-05/0.3407, allocations: 19.91 kB / 0.5097 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.677e-05/0.3408, allocations: 23.28 kB / 0.5097 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.3409, allocations: 91.83 kB / 0.5098 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000144/0.341, allocations: 140.3 kB / 0.5099 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003846/0.3414, allocations: 292.6 kB / 0.5102 GB, free: 3.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3415, allocations: 0.9375 kB / 0.5102 GB, free: 3.188 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.416e-06/0.3415, allocations: 3.938 kB / 0.5102 GB, free: 3.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.3415, allocations: 3.938 kB / 0.5102 GB, free: 3.18 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009482/0.3424, allocations: 0.5962 MB / 0.5108 GB, free: 2.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.3425, allocations: 13.58 kB / 0.5108 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.456e-05/0.3426, allocations: 55.86 kB / 0.5108 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.705e-05/0.3426, allocations: 35.14 kB / 0.5109 GB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004525/0.3431, allocations: 347.2 kB / 0.5112 GB, free: 2.328 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.3431, allocations: 16.91 kB / 0.5112 GB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.856e-05/0.3432, allocations: 23.75 kB / 0.5112 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004259/0.3436, allocations: 290.2 kB / 0.5115 GB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.3436, allocations: 1.031 kB / 0.5115 GB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.466e-05/0.3437, allocations: 10.72 kB / 0.5115 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.3437, allocations: 6.156 kB / 0.5115 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003128/0.344, allocations: 181.1 kB / 0.5117 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001211/0.3452, allocations: 1.231 MB / 0.5129 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002973/0.3455, allocations: 104.5 kB / 0.513 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.124e-05/0.3456, allocations: 44.06 kB / 0.513 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.731e-05/0.3456, allocations: 13.27 kB / 0.5131 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.658e-05/0.3457, allocations: 33.67 kB / 0.5131 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.844e-06/0.3457, allocations: 0 / 0.5131 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007404/0.3464, allocations: 493.7 kB / 0.5136 GB, free: 0.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.3465, allocations: 78.3 kB / 0.5136 GB, free: 416 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002189/0.3467, allocations: 256.8 kB / 0.5139 GB, free: 260 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.939e-06/0.3467, allocations: 26.86 kB / 0.5139 GB, free: 228 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.621e-05/0.3468, allocations: 203.3 kB / 0.5141 GB, free: 52 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.86e-05/0.3469, allocations: 48.97 kB / 0.5141 GB, free: 12 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.188e-05/0.347, allocations: 39.62 kB / 0.5142 GB, free: 15.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3471, allocations: 335.5 kB / 0.5145 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.155e-05/0.3472, allocations: 37.27 kB / 0.5145 GB, free: 15.65 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001553/0.3474, allocations: 128.5 kB / 0.5147 GB, free: 15.51 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002632/0.3476, allocations: 193.6 kB / 0.5148 GB, free: 15.33 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3477, allocations: 1 kB / 0.5149 GB, free: 15.33 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003672/0.348, allocations: 213.7 kB / 0.5151 GB, free: 15.22 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.3481, allocations: 6.469 kB / 0.5151 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.3481, allocations: 4.938 kB / 0.5151 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.3481, allocations: 4.125 kB / 0.5151 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001878/0.3483, allocations: 47.33 kB / 0.5151 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.3483, allocations: 8.672 kB / 0.5151 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.3485, allocations: 12.61 kB / 0.5151 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.3485, allocations: 9.594 kB / 0.5151 GB, free: 15.21 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001718/0.3487, allocations: 153.7 kB / 0.5153 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.883e-05/0.3487, allocations: 21.84 kB / 0.5153 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002771/0.349, allocations: 139.1 kB / 0.5154 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.349, allocations: 1.344 kB / 0.5154 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.349, allocations: 1.375 kB / 0.5154 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.349, allocations: 4.594 kB / 0.5155 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000668/0.3497, allocations: 477.5 kB / 0.5159 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3497, allocations: 1.062 kB / 0.5159 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000137/0.3499, allocations: 29.61 kB / 0.5159 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.3499, allocations: 5.094 kB / 0.5159 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.3499, allocations: 6.672 kB / 0.5159 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.3499, allocations: 1.797 kB / 0.5159 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.3499, allocations: 9.047 kB / 0.516 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003481/0.3503, allocations: 279.8 kB / 0.5162 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.814e-05/0.3504, allocations: 95.22 kB / 0.5163 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.511e-05/0.3504, allocations: 9.812 kB / 0.5163 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.3505, allocations: 6.562 kB / 0.5163 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.18e-05/0.3506, allocations: 10.41 kB / 0.5163 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/0.3506, allocations: 3.969 kB / 0.5163 GB, free: 14.24 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001777/0.3508, allocations: 172.2 kB / 0.5165 GB, free: 14.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3508, allocations: 0 / 0.5165 GB, free: 14.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003377/0.3511, allocations: 48.48 kB / 0.5166 GB, free: 14.13 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * 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.0006928/0.3518, allocations: 0.8118 MB / 0.5173 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002382/0.3521, allocations: 112.1 kB / 0.5175 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/0.3521, allocations: 0 / 0.5175 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.256e-05/0.3522, allocations: 45.97 kB / 0.5175 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005066/0.3527, allocations: 62.36 kB / 0.5176 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003214/0.3559, allocations: 2.454 MB / 0.52 GB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004461/0.3564, allocations: 0.7713 MB / 0.5207 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001716/0.3566, allocations: 29.52 kB / 0.5207 GB, free: 10.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.3567, allocations: 85.62 kB / 0.5208 GB, free: 10.66 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3567, allocations: 192 / 0.5208 GB, free: 10.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02876/0.3855, allocations: 4.6 MB / 0.5253 GB, free: 10.05 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.329/8.715, allocations: 9.062 kB / 0.5253 GB, free: 10.04 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_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_ImpedanceOneTerm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)