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.001262/0.001262, allocations: 105.3 kB / 17.06 MB, free: 6.02 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.001422/0.001422, allocations: 192 kB / 18 MB, free: 5.098 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.42/1.42, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.188/0.188, allocations: 38.03 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 63.89 kB / 457.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3058, allocations: 58.05 MB / 0.5036 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PVsource): time 0.0048/0.3106, allocations: 4.585 MB / 0.5081 GB, free: 4.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001695/0.3123, allocations: 1.323 MB / 0.5094 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001683/0.3125, allocations: 14.09 kB / 0.5094 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001028/0.3136, allocations: 392.3 kB / 0.5098 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004586/0.314, allocations: 253.8 kB / 0.51 GB, free: 2.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003854/0.3144, allocations: 167.7 kB / 0.5102 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005199/0.315, allocations: 0.5647 MB / 0.5107 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003958/0.3154, allocations: 287.7 kB / 0.511 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002995/0.3157, allocations: 252.8 kB / 0.5112 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004135/0.3161, allocations: 278.9 kB / 0.5115 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.362e-05/0.3162, allocations: 30.44 kB / 0.5115 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002558/0.3164, allocations: 127.3 kB / 0.5117 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.3166, allocations: 185.3 kB / 0.5118 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002045/0.3168, allocations: 222 kB / 0.512 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005725/0.3174, allocations: 0.513 MB / 0.5125 GB, free: 1.898 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3174, allocations: 3.938 kB / 0.5125 GB, free: 1.895 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3174, allocations: 0 / 0.5125 GB, free: 1.895 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.3174, allocations: 1.531 kB / 0.5126 GB, free: 1.895 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.0009646/0.3184, allocations: 0.7113 MB / 0.5132 GB, free: 1.324 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.3184, allocations: 13.55 kB / 0.5133 GB, free: 1.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.541e-05/0.3185, allocations: 76.83 kB / 0.5133 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005531/0.3191, allocations: 87.33 kB / 0.5134 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005526/0.3196, allocations: 410.4 kB / 0.5138 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/0.3197, allocations: 23.75 kB / 0.5138 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.3198, allocations: 54.2 kB / 0.5139 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006391/0.3205, allocations: 474.4 kB / 0.5143 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.3205, allocations: 0 / 0.5143 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.403e-05/0.3205, allocations: 16 kB / 0.5143 GB, free: 0.668 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001029/0.3206, allocations: 24.7 kB / 0.5144 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005122/0.3212, allocations: 342.9 kB / 0.5147 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002081/0.3232, allocations: 1.708 MB / 0.5164 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002982/0.3236, allocations: 146.5 kB / 0.5165 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001961/0.3238, allocations: 113.5 kB / 0.5166 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.3238, allocations: 3.031 kB / 0.5166 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.748e-05/0.3238, allocations: 39.62 kB / 0.5167 GB, free: 15.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.3238, allocations: 0.5 kB / 0.5167 GB, free: 15.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.001622/0.3255, allocations: 0.8579 MB / 0.5175 GB, free: 14.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.151e-05/0.3255, allocations: 84.61 kB / 0.5176 GB, free: 14.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000402/0.326, allocations: 308.5 kB / 0.5179 GB, free: 14.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.326, allocations: 31.31 kB / 0.5179 GB, free: 14.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001935/0.3262, allocations: 253.5 kB / 0.5181 GB, free: 14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.436e-05/0.3263, allocations: 66.67 kB / 0.5182 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.3264, allocations: 65.89 kB / 0.5183 GB, free: 13.9 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.3265, allocations: 344 kB / 0.5186 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.3267, allocations: 93.59 kB / 0.5187 GB, free: 13.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002394/0.3269, allocations: 194.1 kB / 0.5189 GB, free: 13.38 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004194/0.3274, allocations: 318.7 kB / 0.5192 GB, free: 13.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.3274, allocations: 0.5156 kB / 0.5192 GB, free: 13.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008629/0.3282, allocations: 457 kB / 0.5196 GB, free: 12.97 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.3283, allocations: 7.297 kB / 0.5196 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005977/0.3289, allocations: 295 kB / 0.5199 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004502/0.3293, allocations: 122.6 kB / 0.52 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.3295, allocations: 60.88 kB / 0.5201 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002862/0.3324, allocations: 2.375 MB / 0.5224 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002146/0.3327, allocations: 24.7 kB / 0.5224 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.313e-05/0.3327, allocations: 11.23 kB / 0.5224 GB, free: 10.95 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.0002603/0.333, allocations: 190.5 kB / 0.5226 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.104e-05/0.333, allocations: 32.89 kB / 0.5226 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004309/0.3335, allocations: 246.4 kB / 0.5229 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.3335, allocations: 6.531 kB / 0.5229 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.3335, allocations: 4 kB / 0.5229 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.3335, allocations: 3.484 kB / 0.5229 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001217/0.3347, allocations: 0.7159 MB / 0.5236 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.3347, allocations: 1.188 kB / 0.5236 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002029/0.3349, allocations: 36.06 kB / 0.5236 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001048/0.3351, allocations: 36.8 kB / 0.5237 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.3351, allocations: 7.359 kB / 0.5237 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001396/0.3365, allocations: 1.592 MB / 0.5252 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3365, allocations: 1.375 kB / 0.5252 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005757/0.3371, allocations: 429 kB / 0.5256 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.649e-05/0.3372, allocations: 106.5 kB / 0.5257 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.48e-05/0.3372, allocations: 7.969 kB / 0.5257 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.3374, allocations: 10.69 kB / 0.5257 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.9e-05/0.3374, allocations: 14.72 kB / 0.5258 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.3375, allocations: 12.77 kB / 0.5258 GB, free: 8.234 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002341/0.3377, allocations: 214.2 kB / 0.526 GB, free: 8.117 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3377, allocations: 0 / 0.526 GB, free: 8.117 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004888/0.3382, allocations: 88.09 kB / 0.5261 GB, free: 8.109 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.0008893/0.3391, allocations: 0.9617 MB / 0.527 GB, free: 7.301 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007344/0.3398, allocations: 398.9 kB / 0.5274 GB, free: 7.094 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3399, allocations: 0 / 0.5274 GB, free: 7.094 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003615/0.3402, allocations: 230.3 kB / 0.5276 GB, free: 6.941 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004932/0.3407, allocations: 69.05 kB / 0.5277 GB, free: 6.914 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004826/0.3456, allocations: 3.508 MB / 0.5311 GB, free: 4.582 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005395/0.3461, allocations: 0.8434 MB / 0.5319 GB, free: 3.863 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001973/0.3463, allocations: 60.22 kB / 0.532 GB, free: 3.855 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.3465, allocations: 128.2 kB / 0.5321 GB, free: 3.758 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3465, allocations: 0 / 0.5321 GB, free: 3.758 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03554/0.3821, allocations: 7.477 MB / 0.5394 GB, free: 0.707 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.55, allocations: 4.75 kB / 0.5394 GB, free: 0.707 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)