Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.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.PQsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PQsource",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.001234/0.001234, allocations: 109.2 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.001246/0.001246, allocations: 192 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.427/1.427, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1839/0.1839, allocations: 38.03 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 63.89 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3132, allocations: 58.05 MB / 0.5036 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.005308/0.3186, allocations: 4.555 MB / 0.5081 GB, free: 4.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.3206, allocations: 1.316 MB / 0.5094 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002224/0.3208, allocations: 13.12 kB / 0.5094 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.3219, allocations: 397.7 kB / 0.5097 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005651/0.3225, allocations: 255.1 kB / 0.51 GB, free: 3.047 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005003/0.323, allocations: 164.6 kB / 0.5101 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007148/0.3237, allocations: 0.5608 MB / 0.5107 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004532/0.3242, allocations: 287.8 kB / 0.511 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004129/0.3246, allocations: 253.7 kB / 0.5112 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005221/0.3251, allocations: 280.2 kB / 0.5115 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.87e-05/0.3252, allocations: 30.09 kB / 0.5115 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000277/0.3255, allocations: 130 kB / 0.5116 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001884/0.3257, allocations: 194.4 kB / 0.5118 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001998/0.3259, allocations: 217.3 kB / 0.512 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006126/0.3265, allocations: 0.517 MB / 0.5125 GB, free: 1.973 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.3265, allocations: 1.125 kB / 0.5125 GB, free: 1.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.3265, allocations: 0 / 0.5125 GB, free: 1.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.3266, allocations: 0 / 0.5125 GB, free: 1.973 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.001029/0.3276, allocations: 0.7134 MB / 0.5132 GB, free: 1.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.3276, allocations: 13.61 kB / 0.5132 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.624e-05/0.3277, allocations: 76.72 kB / 0.5133 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005892/0.3283, allocations: 88.11 kB / 0.5134 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006831/0.329, allocations: 419 kB / 0.5138 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.3291, allocations: 23.28 kB / 0.5138 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/0.3292, allocations: 50.44 kB / 0.5139 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007219/0.3299, allocations: 482.8 kB / 0.5143 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.33, allocations: 0.6094 kB / 0.5143 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.56e-05/0.33, allocations: 15.38 kB / 0.5143 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001067/0.3301, allocations: 25.03 kB / 0.5144 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000557/0.3307, allocations: 353.1 kB / 0.5147 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002193/0.3329, allocations: 1.728 MB / 0.5164 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003576/0.3333, allocations: 155 kB / 0.5165 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002056/0.3335, allocations: 114.8 kB / 0.5166 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.3335, allocations: 1.969 kB / 0.5166 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.3335, allocations: 37.16 kB / 0.5167 GB, free: 15.19 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.993e-06/0.3336, allocations: 0 / 0.5167 GB, free: 15.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.00177/0.3353, allocations: 0.89 MB / 0.5176 GB, free: 14.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.305e-05/0.3354, allocations: 84.12 kB / 0.5176 GB, free: 14.47 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004124/0.3358, allocations: 316 kB / 0.5179 GB, free: 14.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.3359, allocations: 33.69 kB / 0.518 GB, free: 14.26 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001944/0.3361, allocations: 253.9 kB / 0.5182 GB, free: 14.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.502e-05/0.3361, allocations: 62.67 kB / 0.5183 GB, free: 14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.3362, allocations: 62.06 kB / 0.5183 GB, free: 13.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3364, allocations: 344.1 kB / 0.5187 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.3366, allocations: 97.92 kB / 0.5187 GB, free: 13.6 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.3368, allocations: 207.3 kB / 0.5189 GB, free: 13.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004622/0.3373, allocations: 326.8 kB / 0.5193 GB, free: 13.21 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3373, allocations: 1.188 kB / 0.5193 GB, free: 13.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009282/0.3383, allocations: 480.5 kB / 0.5197 GB, free: 13 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.3383, allocations: 5.812 kB / 0.5197 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006527/0.3389, allocations: 315.7 kB / 0.52 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000513/0.3395, allocations: 144.8 kB / 0.5202 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002105/0.3397, allocations: 60.94 kB / 0.5202 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003153/0.3429, allocations: 2.437 MB / 0.5226 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002978/0.3432, allocations: 16.12 kB / 0.5226 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.49e-05/0.3432, allocations: 11.41 kB / 0.5226 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.0003141/0.3435, allocations: 193.5 kB / 0.5228 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.681e-05/0.3436, allocations: 34 kB / 0.5228 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004972/0.3441, allocations: 266.2 kB / 0.5231 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.3441, allocations: 2.75 kB / 0.5231 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.3441, allocations: 1.375 kB / 0.5231 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.3441, allocations: 1.266 kB / 0.5231 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.3454, allocations: 0.7385 MB / 0.5238 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3455, allocations: 1.062 kB / 0.5238 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002162/0.3457, allocations: 43.89 kB / 0.5239 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001144/0.3458, allocations: 34.41 kB / 0.5239 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.3458, allocations: 8.266 kB / 0.5239 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.3458, allocations: 1.984 kB / 0.5239 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3459, allocations: 1.562 kB / 0.5239 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000616/0.3465, allocations: 449.8 kB / 0.5243 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.3466, allocations: 103.1 kB / 0.5244 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.362e-05/0.3466, allocations: 3.891 kB / 0.5244 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.3468, allocations: 10.28 kB / 0.5245 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.551e-05/0.3468, allocations: 18.7 kB / 0.5245 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-05/0.3469, allocations: 13.67 kB / 0.5245 GB, free: 9.734 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000259/0.3471, allocations: 218.4 kB / 0.5247 GB, free: 9.617 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3471, allocations: 0 / 0.5247 GB, free: 9.617 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005189/0.3477, allocations: 87.03 kB / 0.5248 GB, free: 9.609 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): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001/0.3487, allocations: 0.9751 MB / 0.5257 GB, free: 8.801 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009502/0.3496, allocations: 417.2 kB / 0.5261 GB, free: 8.582 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3496, allocations: 1.406 kB / 0.5261 GB, free: 8.582 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002894/0.3499, allocations: 181.9 kB / 0.5263 GB, free: 8.449 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005395/0.3505, allocations: 61.48 kB / 0.5264 GB, free: 8.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005668/0.3562, allocations: 3.585 MB / 0.5299 GB, free: 6.074 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006783/0.3569, allocations: 0.8416 MB / 0.5307 GB, free: 5.359 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002746/0.3572, allocations: 66.95 kB / 0.5307 GB, free: 5.348 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002163/0.3574, allocations: 127.2 kB / 0.5309 GB, free: 5.25 MB / 398.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3574, allocations: 0 / 0.5309 GB, free: 5.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03593/0.3933, allocations: 7.328 MB / 0.538 GB, free: 2.242 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/12.95, allocations: 17.58 kB / 0.538 GB, free: 2.23 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource_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_PQsource.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe 2>&1)