Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.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.AC3ph.Generation.PVsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PVsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PVsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PVsource",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.001576/0.001576, allocations: 112.9 kB / 17.06 MB, free: 5.945 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.001707/0.001707, allocations: 200 kB / 18.01 MB, free: 5.031 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.35/1.35, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.183/0.183, allocations: 38.03 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 67.89 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3209, allocations: 58.06 MB / 0.5036 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PVsource): time 0.00478/0.3257, allocations: 4.58 MB / 0.5081 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.3275, allocations: 1.328 MB / 0.5094 GB, free: 3.402 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.3277, allocations: 13.72 kB / 0.5094 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001005/0.3287, allocations: 395.5 kB / 0.5098 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005055/0.3292, allocations: 259.2 kB / 0.51 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004642/0.3297, allocations: 164.6 kB / 0.5102 GB, free: 2.938 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005498/0.3302, allocations: 0.5598 MB / 0.5107 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004082/0.3307, allocations: 285.6 kB / 0.511 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003283/0.331, allocations: 261 kB / 0.5112 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000418/0.3314, allocations: 279.2 kB / 0.5115 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.012e-05/0.3315, allocations: 30.75 kB / 0.5115 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002493/0.3317, allocations: 129.9 kB / 0.5117 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001831/0.3319, allocations: 190.1 kB / 0.5118 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001939/0.3321, allocations: 214.3 kB / 0.5121 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006101/0.3328, allocations: 0.5123 MB / 0.5126 GB, free: 1.938 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3328, allocations: 0 / 0.5126 GB, free: 1.938 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3328, allocations: 0 / 0.5126 GB, free: 1.938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.3328, allocations: 5.125 kB / 0.5126 GB, free: 1.934 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001062/0.3339, allocations: 0.7061 MB / 0.5132 GB, free: 1.371 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.3339, allocations: 13.42 kB / 0.5133 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.933e-05/0.334, allocations: 81.48 kB / 0.5133 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006001/0.3346, allocations: 87.62 kB / 0.5134 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006397/0.3352, allocations: 414 kB / 0.5138 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.3353, allocations: 27.19 kB / 0.5138 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.3354, allocations: 54.55 kB / 0.5139 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006768/0.3361, allocations: 473.1 kB / 0.5143 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.3361, allocations: 4.969 kB / 0.5143 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.3362, allocations: 15.84 kB / 0.5144 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001074/0.3363, allocations: 24.84 kB / 0.5144 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000509/0.3368, allocations: 338.8 kB / 0.5147 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002114/0.3389, allocations: 1.704 MB / 0.5164 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002984/0.3392, allocations: 154.7 kB / 0.5165 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/0.3394, allocations: 106.3 kB / 0.5166 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.3395, allocations: 2.312 kB / 0.5166 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.3395, allocations: 36.45 kB / 0.5167 GB, free: 15.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.482e-06/0.3395, allocations: 0.5312 kB / 0.5167 GB, free: 15.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.00154/0.341, allocations: 0.8615 MB / 0.5175 GB, free: 14.55 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.96e-05/0.3411, allocations: 84.08 kB / 0.5176 GB, free: 14.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003792/0.3415, allocations: 305.4 kB / 0.5179 GB, free: 14.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.53e-05/0.3415, allocations: 35.47 kB / 0.5179 GB, free: 14.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.3417, allocations: 253.8 kB / 0.5182 GB, free: 14.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.256e-05/0.3417, allocations: 61.23 kB / 0.5182 GB, free: 13.99 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.405e-05/0.3419, allocations: 66.11 kB / 0.5183 GB, free: 13.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.342, allocations: 348.1 kB / 0.5186 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.3421, allocations: 92.88 kB / 0.5187 GB, free: 13.58 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002056/0.3424, allocations: 199.4 kB / 0.5189 GB, free: 13.42 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003853/0.3427, allocations: 311 kB / 0.5192 GB, free: 13.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3428, allocations: 1.344 kB / 0.5192 GB, free: 13.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008571/0.3436, allocations: 463.9 kB / 0.5196 GB, free: 13 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.3436, allocations: 7.781 kB / 0.5196 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005701/0.3442, allocations: 289.2 kB / 0.5199 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004605/0.3447, allocations: 121.8 kB / 0.52 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001985/0.3449, allocations: 57.62 kB / 0.5201 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002641/0.3476, allocations: 2.387 MB / 0.5224 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.3478, allocations: 20.98 kB / 0.5224 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.028e-05/0.3478, allocations: 10.91 kB / 0.5224 GB, free: 10.98 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 (29): * Single equations (assignments): 28 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002074/0.348, allocations: 186.7 kB / 0.5226 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.706e-05/0.3481, allocations: 30.12 kB / 0.5226 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000417/0.3485, allocations: 248.4 kB / 0.5229 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.3485, allocations: 7.625 kB / 0.5229 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-06/0.3485, allocations: 4 kB / 0.5229 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.3485, allocations: 2.203 kB / 0.5229 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.3497, allocations: 0.7168 MB / 0.5236 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.3497, allocations: 1.375 kB / 0.5236 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002136/0.3499, allocations: 44.3 kB / 0.5236 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-05/0.35, allocations: 27.95 kB / 0.5237 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.35, allocations: 8.016 kB / 0.5237 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.3512, allocations: 1.591 MB / 0.5252 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3512, allocations: 1.672 kB / 0.5252 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005328/0.3518, allocations: 430.8 kB / 0.5256 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.719e-05/0.3519, allocations: 106.8 kB / 0.5257 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.278e-05/0.3519, allocations: 7.938 kB / 0.5257 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.3521, allocations: 6.562 kB / 0.5258 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.968e-05/0.3521, allocations: 19.75 kB / 0.5258 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.3521, allocations: 3.5 kB / 0.5258 GB, free: 8.273 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002137/0.3524, allocations: 215.4 kB / 0.526 GB, free: 8.156 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.533e-06/0.3524, allocations: 0 / 0.526 GB, free: 8.156 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004716/0.3528, allocations: 91.31 kB / 0.5261 GB, free: 8.145 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * 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): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008333/0.3537, allocations: 0.9587 MB / 0.527 GB, free: 7.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006999/0.3544, allocations: 399.8 kB / 0.5274 GB, free: 7.129 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3544, allocations: 1.562 kB / 0.5274 GB, free: 7.129 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003392/0.3548, allocations: 233.3 kB / 0.5276 GB, free: 6.973 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004871/0.3553, allocations: 67.2 kB / 0.5277 GB, free: 6.945 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004592/0.3599, allocations: 3.499 MB / 0.5311 GB, free: 4.621 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004465/0.3603, allocations: 0.8445 MB / 0.5319 GB, free: 3.902 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001763/0.3605, allocations: 64.12 kB / 0.532 GB, free: 3.891 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/0.3607, allocations: 127.7 kB / 0.5321 GB, free: 3.793 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3607, allocations: 0 / 0.5321 GB, free: 3.793 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02908/0.3898, allocations: 7.484 MB / 0.5394 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.9, allocations: 5.406 kB / 0.5394 GB, free: 0.7305 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Generation_PVsource.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PVsource.pipe 2>&1)