Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line",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.001441/0.001441, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001427/0.001427, allocations: 193.4 kB / 18 MB, free: 5.172 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.444/1.444, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1846/0.1846, allocations: 38.03 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 63.89 kB / 457.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3282, allocations: 58.05 MB / 0.5036 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.005649/0.3339, allocations: 4.907 MB / 0.5084 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001854/0.3358, allocations: 1.301 MB / 0.5097 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002227/0.336, allocations: 12.91 kB / 0.5097 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004788/0.3365, allocations: 118.9 kB / 0.5098 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007699/0.3373, allocations: 334.1 kB / 0.5101 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004524/0.3378, allocations: 153.4 kB / 0.5103 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007604/0.3386, allocations: 0.6966 MB / 0.511 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002582/0.3388, allocations: 166.5 kB / 0.5111 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003656/0.3392, allocations: 306.3 kB / 0.5114 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006499/0.3399, allocations: 436.4 kB / 0.5118 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.196e-05/0.34, allocations: 44.88 kB / 0.5119 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001264/0.3401, allocations: 50.94 kB / 0.5119 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002603/0.3404, allocations: 240.3 kB / 0.5121 GB, free: 2.102 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002786/0.3407, allocations: 277.3 kB / 0.5124 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006823/0.3413, allocations: 0.6093 MB / 0.513 GB, free: 1.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3414, allocations: 0.8906 kB / 0.513 GB, free: 1.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3414, allocations: 0 / 0.513 GB, free: 1.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.3414, allocations: 1.125 kB / 0.513 GB, free: 1.73 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001824/0.3432, allocations: 0.9658 MB / 0.5139 GB, free: 1.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.3433, allocations: 9.312 kB / 0.514 GB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.3434, allocations: 71.8 kB / 0.514 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.3435, allocations: 54.73 kB / 0.5141 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/0.3446, allocations: 0.619 MB / 0.5147 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.011e-05/0.3446, allocations: 26.31 kB / 0.5147 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.594e-05/0.3447, allocations: 43.95 kB / 0.5147 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008636/0.3456, allocations: 0.5494 MB / 0.5153 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.3456, allocations: 1.094 kB / 0.5153 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.527e-05/0.3457, allocations: 15.92 kB / 0.5153 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003329/0.346, allocations: 89.62 kB / 0.5154 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006581/0.3467, allocations: 354.5 kB / 0.5157 GB, free: 288 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003199/0.3499, allocations: 2.065 MB / 0.5177 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008716/0.3508, allocations: 385 kB / 0.5181 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005848/0.3514, allocations: 292.2 kB / 0.5184 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.3514, allocations: 3.25 kB / 0.5184 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.647e-05/0.3515, allocations: 41.28 kB / 0.5184 GB, free: 14.74 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.405e-06/0.3515, allocations: 1.094 kB / 0.5184 GB, free: 14.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.004921/0.3564, allocations: 2.537 MB / 0.5209 GB, free: 13.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.072e-05/0.3565, allocations: 89.88 kB / 0.521 GB, free: 13.17 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004434/0.3569, allocations: 380.7 kB / 0.5214 GB, free: 12.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.082e-05/0.357, allocations: 35.08 kB / 0.5214 GB, free: 12.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/0.3572, allocations: 258.4 kB / 0.5216 GB, free: 12.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.3574, allocations: 139 kB / 0.5218 GB, free: 12.62 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/0.3575, allocations: 99.91 kB / 0.5219 GB, free: 12.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.3577, allocations: 361.5 kB / 0.5222 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003708/0.3581, allocations: 244.2 kB / 0.5224 GB, free: 12.17 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004883/0.3586, allocations: 364.4 kB / 0.5228 GB, free: 11.97 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009354/0.3595, allocations: 0.6153 MB / 0.5234 GB, free: 11.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3595, allocations: 1.219 kB / 0.5234 GB, free: 11.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001854/0.3614, allocations: 1.005 MB / 0.5244 GB, free: 11.35 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.3614, allocations: 7.156 kB / 0.5244 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.3615, allocations: 7.594 kB / 0.5244 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.3625, allocations: 411.4 kB / 0.5248 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002969/0.3628, allocations: 83.52 kB / 0.5249 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005913/0.3688, allocations: 5.139 MB / 0.5299 GB, free: 7.613 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000464/0.3693, allocations: 41.64 kB / 0.5299 GB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.913e-05/0.3693, allocations: 19.69 kB / 0.5299 GB, free: 7.602 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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003564/0.3697, allocations: 206 kB / 0.5301 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.341e-05/0.3698, allocations: 43.64 kB / 0.5302 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001635/0.3714, allocations: 0.8302 MB / 0.531 GB, free: 7.105 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.739e-06/0.3714, allocations: 9.172 kB / 0.531 GB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3715, allocations: 6.219 kB / 0.531 GB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.3715, allocations: 2.688 kB / 0.531 GB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00239/0.3739, allocations: 1.42 MB / 0.5324 GB, free: 6.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.309e-06/0.3739, allocations: 5.062 kB / 0.5324 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.3741, allocations: 32.48 kB / 0.5324 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001245/0.3753, allocations: 453.3 kB / 0.5329 GB, free: 6.02 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.837e-05/0.3754, allocations: 34.09 kB / 0.5329 GB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006198/0.3816, allocations: 6.714 MB / 0.5394 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3816, allocations: 1.156 kB / 0.5394 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001938/0.3836, allocations: 1.119 MB / 0.5405 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001719/0.3838, allocations: 126.6 kB / 0.5407 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.286e-05/0.3839, allocations: 28.58 kB / 0.5407 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003088/0.3842, allocations: 36.41 kB / 0.5407 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.3843, allocations: 38.97 kB / 0.5408 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.08e-05/0.3843, allocations: 24.22 kB / 0.5408 GB, free: 14.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003232/0.3847, allocations: 258.6 kB / 0.541 GB, free: 14.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3847, allocations: 4 kB / 0.541 GB, free: 14.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007482/0.3854, allocations: 157.9 kB / 0.5412 GB, free: 14.75 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * 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 (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (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.002183/0.3876, allocations: 1.678 MB / 0.5428 GB, free: 13.58 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001733/0.3894, allocations: 0.907 MB / 0.5437 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3894, allocations: 1.25 kB / 0.5437 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001649/0.391, allocations: 1.079 MB / 0.5448 GB, free: 12.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008418/0.3919, allocations: 125.6 kB / 0.5449 GB, free: 12.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009442/0.4014, allocations: 6.277 MB / 0.551 GB, free: 6.137 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006333/0.402, allocations: 0.8859 MB / 0.5519 GB, free: 5.223 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002592/0.4023, allocations: 72.34 kB / 0.5519 GB, free: 5.152 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002229/0.4025, allocations: 155.4 kB / 0.5521 GB, free: 5.004 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4025, allocations: 0 / 0.5521 GB, free: 5.004 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04762/0.4502, allocations: 12.46 MB / 0.5643 GB, free: 8.676 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.17, allocations: 7.766 kB / 0.5643 GB, free: 8.668 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1)