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.001688/0.001688, allocations: 109.6 kB / 17.06 MB, free: 6.016 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.001963/0.001963, allocations: 191 kB / 18 MB, free: 5.102 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.409/1.409, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1889/0.1889, allocations: 38.02 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.00138, allocations: 59.91 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3035, allocations: 58.05 MB / 0.5036 GB, free: 7.57 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.00564/0.3092, allocations: 4.919 MB / 0.5084 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00246/0.3117, allocations: 1.294 MB / 0.5097 GB, free: 3.227 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003111/0.3121, allocations: 16.62 kB / 0.5097 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004584/0.3126, allocations: 121.4 kB / 0.5098 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007517/0.3133, allocations: 334.6 kB / 0.5101 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004313/0.3138, allocations: 150.5 kB / 0.5103 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007974/0.3146, allocations: 0.7013 MB / 0.511 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002849/0.3149, allocations: 169 kB / 0.5111 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000569/0.3154, allocations: 307.3 kB / 0.5114 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007338/0.3162, allocations: 443.9 kB / 0.5118 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.539e-05/0.3163, allocations: 46.25 kB / 0.5119 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.3164, allocations: 47.5 kB / 0.5119 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002602/0.3167, allocations: 239.3 kB / 0.5122 GB, free: 2.195 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003223/0.317, allocations: 278.2 kB / 0.5124 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007498/0.3178, allocations: 0.6053 MB / 0.513 GB, free: 1.828 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.3178, allocations: 1.031 kB / 0.513 GB, free: 1.828 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3178, allocations: 3.938 kB / 0.513 GB, free: 1.824 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.737e-05/0.3178, allocations: 0 / 0.513 GB, free: 1.824 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.002078/0.3199, allocations: 0.9578 MB / 0.514 GB, free: 1.211 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.3199, allocations: 10 kB / 0.514 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.491e-05/0.32, allocations: 75.25 kB / 0.514 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.3202, allocations: 55.48 kB / 0.5141 GB, free: 1.121 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/0.3214, allocations: 0.6185 MB / 0.5147 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.642e-05/0.3214, allocations: 26.59 kB / 0.5147 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.3216, allocations: 44.55 kB / 0.5148 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008269/0.3224, allocations: 0.553 MB / 0.5153 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.3224, allocations: 1.719 kB / 0.5153 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.682e-05/0.3225, allocations: 15.27 kB / 0.5153 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003469/0.3228, allocations: 85.08 kB / 0.5154 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006538/0.3235, allocations: 362.7 kB / 0.5157 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003304/0.3268, allocations: 2.064 MB / 0.5178 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008475/0.3277, allocations: 381.4 kB / 0.5181 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005215/0.3282, allocations: 290.4 kB / 0.5184 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.3282, allocations: 11.19 kB / 0.5184 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.3283, allocations: 33.8 kB / 0.5184 GB, free: 14.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.044e-06/0.3283, allocations: 0 / 0.5184 GB, free: 14.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.004908/0.3332, allocations: 2.543 MB / 0.5209 GB, free: 13.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/0.3333, allocations: 86.09 kB / 0.521 GB, free: 13.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004984/0.3338, allocations: 380.1 kB / 0.5214 GB, free: 13.08 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.422e-05/0.3339, allocations: 31.08 kB / 0.5214 GB, free: 13.04 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/0.3341, allocations: 258.1 kB / 0.5216 GB, free: 12.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.3342, allocations: 140.2 kB / 0.5218 GB, free: 12.72 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.3344, allocations: 99.09 kB / 0.5219 GB, free: 12.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.3345, allocations: 361.5 kB / 0.5222 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003666/0.3349, allocations: 251.4 kB / 0.5225 GB, free: 12.26 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004241/0.3353, allocations: 361.8 kB / 0.5228 GB, free: 12.06 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008039/0.3361, allocations: 0.6077 MB / 0.5234 GB, free: 11.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.3361, allocations: 0 / 0.5234 GB, free: 11.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001865/0.338, allocations: 1.01 MB / 0.5244 GB, free: 11.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.3381, allocations: 10.73 kB / 0.5244 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.3381, allocations: 3.281 kB / 0.5244 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/0.3391, allocations: 407.9 kB / 0.5248 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000304/0.3394, allocations: 83.2 kB / 0.5249 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005843/0.3453, allocations: 5.138 MB / 0.5299 GB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004774/0.3458, allocations: 41.73 kB / 0.5299 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-05/0.3459, allocations: 20.31 kB / 0.5299 GB, free: 7.699 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.000377/0.3463, allocations: 210.6 kB / 0.5301 GB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/0.3464, allocations: 43.44 kB / 0.5302 GB, free: 7.512 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/0.3482, allocations: 0.8345 MB / 0.531 GB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.809e-06/0.3482, allocations: 4.344 kB / 0.531 GB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/0.3483, allocations: 2.156 kB / 0.531 GB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.565e-06/0.3483, allocations: 3.109 kB / 0.531 GB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00261/0.3509, allocations: 1.414 MB / 0.5324 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3509, allocations: 1.406 kB / 0.5324 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.3511, allocations: 40.2 kB / 0.5324 GB, free: 6.344 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001224/0.3523, allocations: 453.8 kB / 0.5329 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.044e-05/0.3524, allocations: 33.44 kB / 0.5329 GB, free: 6.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005799/0.3582, allocations: 6.715 MB / 0.5394 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3583, allocations: 0.8438 kB / 0.5395 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002191/0.3605, allocations: 1.127 MB / 0.5406 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/0.3607, allocations: 121 kB / 0.5407 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001472/0.3609, allocations: 32.86 kB / 0.5407 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003506/0.3613, allocations: 36.67 kB / 0.5407 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.3614, allocations: 35.44 kB / 0.5408 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.605e-05/0.3614, allocations: 19.98 kB / 0.5408 GB, free: 15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003241/0.3618, allocations: 265.8 kB / 0.541 GB, free: 14.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3618, allocations: 5 kB / 0.541 GB, free: 14.83 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008336/0.3626, allocations: 157.7 kB / 0.5412 GB, free: 14.82 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.002105/0.3647, allocations: 1.671 MB / 0.5428 GB, free: 13.65 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001808/0.3666, allocations: 0.9111 MB / 0.5437 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3666, allocations: 0 / 0.5437 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.3682, allocations: 1.076 MB / 0.5448 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009089/0.3691, allocations: 127 kB / 0.5449 GB, free: 12.11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008744/0.3778, allocations: 6.274 MB / 0.551 GB, free: 6.117 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004669/0.3783, allocations: 0.882 MB / 0.5519 GB, free: 5.207 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002575/0.3786, allocations: 80.31 kB / 0.552 GB, free: 5.129 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002135/0.3788, allocations: 155.4 kB / 0.5521 GB, free: 4.98 MB / 414.1 MB Notification: Performance of SimCode: time 1.253e-06/0.3789, allocations: 0 / 0.5521 GB, free: 4.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0405/0.4194, allocations: 12.45 MB / 0.5643 GB, free: 8.664 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/10.82, allocations: 15.56 kB / 0.5643 GB, free: 8.648 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)