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.001157/0.001157, allocations: 113.2 kB / 17.07 MB, free: 5.988 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.001174/0.001174, allocations: 195 kB / 18 MB, free: 5.074 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.299/1.299, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1736/0.1736, allocations: 38.04 MB / 329.9 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 71.88 kB / 457.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3039, allocations: 58.05 MB / 0.5036 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.004914/0.3088, allocations: 4.561 MB / 0.5081 GB, free: 4.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.3105, allocations: 1.313 MB / 0.5093 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.3107, allocations: 12.31 kB / 0.5094 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000986/0.3117, allocations: 400.8 kB / 0.5097 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004418/0.3121, allocations: 258.4 kB / 0.51 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000372/0.3125, allocations: 171.1 kB / 0.5101 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004979/0.313, allocations: 0.5531 MB / 0.5107 GB, free: 2.715 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004011/0.3134, allocations: 289 kB / 0.511 GB, free: 2.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000321/0.3137, allocations: 257.9 kB / 0.5112 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004115/0.3142, allocations: 283.6 kB / 0.5115 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.737e-05/0.3142, allocations: 30.19 kB / 0.5115 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002404/0.3145, allocations: 130.6 kB / 0.5116 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.3147, allocations: 193.7 kB / 0.5118 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001915/0.3149, allocations: 217.8 kB / 0.512 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005861/0.3155, allocations: 0.5148 MB / 0.5125 GB, free: 1.953 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3155, allocations: 8 kB / 0.5125 GB, free: 1.945 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3155, allocations: 0 / 0.5125 GB, free: 1.945 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.3155, allocations: 0 / 0.5125 GB, free: 1.945 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.0009873/0.3165, allocations: 0.707 MB / 0.5132 GB, free: 1.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.3165, allocations: 14.42 kB / 0.5132 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.064e-05/0.3166, allocations: 77.12 kB / 0.5133 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005763/0.3172, allocations: 88.3 kB / 0.5134 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006108/0.3178, allocations: 423.2 kB / 0.5138 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.3178, allocations: 22.8 kB / 0.5138 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.318, allocations: 50.62 kB / 0.5139 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006616/0.3186, allocations: 478.1 kB / 0.5143 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.3187, allocations: 5.25 kB / 0.5143 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.408e-05/0.3187, allocations: 15.56 kB / 0.5143 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001084/0.3188, allocations: 24.84 kB / 0.5144 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000523/0.3193, allocations: 353.1 kB / 0.5147 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002087/0.3214, allocations: 1.724 MB / 0.5164 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003145/0.3218, allocations: 155.5 kB / 0.5165 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.322, allocations: 114.1 kB / 0.5167 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.322, allocations: 1.922 kB / 0.5167 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.322, allocations: 33.33 kB / 0.5167 GB, free: 15.17 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.443e-06/0.322, allocations: 4 kB / 0.5167 GB, free: 15.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.001576/0.3236, allocations: 0.8906 MB / 0.5176 GB, free: 14.55 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/0.3237, allocations: 80.06 kB / 0.5176 GB, free: 14.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003283/0.324, allocations: 314.8 kB / 0.5179 GB, free: 14.28 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.324, allocations: 30.86 kB / 0.518 GB, free: 14.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.3242, allocations: 265.4 kB / 0.5182 GB, free: 14.03 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.298e-05/0.3243, allocations: 62.86 kB / 0.5183 GB, free: 13.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.315e-05/0.3244, allocations: 62.41 kB / 0.5183 GB, free: 13.94 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.3245, allocations: 344.5 kB / 0.5187 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.3247, allocations: 102.5 kB / 0.5188 GB, free: 13.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.3249, allocations: 206.5 kB / 0.519 GB, free: 13.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000409/0.3253, allocations: 327.1 kB / 0.5193 GB, free: 13.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3253, allocations: 1.094 kB / 0.5193 GB, free: 13.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009511/0.3263, allocations: 476.7 kB / 0.5197 GB, free: 12.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.3263, allocations: 6.438 kB / 0.5197 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006364/0.3269, allocations: 322 kB / 0.52 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005232/0.3275, allocations: 140.2 kB / 0.5202 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000213/0.3277, allocations: 57.66 kB / 0.5202 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002888/0.3306, allocations: 2.433 MB / 0.5226 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002378/0.3309, allocations: 17.42 kB / 0.5226 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.3309, allocations: 11.06 kB / 0.5226 GB, free: 10.93 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.0002384/0.3311, allocations: 188.8 kB / 0.5228 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.552e-05/0.3312, allocations: 32.77 kB / 0.5228 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004915/0.3317, allocations: 274.9 kB / 0.5231 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.3317, allocations: 2.75 kB / 0.5231 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3317, allocations: 1.938 kB / 0.5231 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.3317, allocations: 0.7031 kB / 0.5231 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001293/0.333, allocations: 0.7428 MB / 0.5238 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.333, allocations: 2.031 kB / 0.5238 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002199/0.3333, allocations: 40.12 kB / 0.5239 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001075/0.3334, allocations: 33.14 kB / 0.5239 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.3334, allocations: 7.453 kB / 0.5239 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.3334, allocations: 2.125 kB / 0.5239 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.3334, allocations: 1.375 kB / 0.5239 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005402/0.334, allocations: 450.8 kB / 0.5243 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.676e-05/0.3341, allocations: 102.7 kB / 0.5244 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.518e-05/0.3341, allocations: 12.55 kB / 0.5245 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/0.3343, allocations: 7.156 kB / 0.5245 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.321e-05/0.3343, allocations: 18.89 kB / 0.5245 GB, free: 9.715 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.3344, allocations: 7.594 kB / 0.5245 GB, free: 9.711 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002303/0.3346, allocations: 224 kB / 0.5247 GB, free: 9.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3346, allocations: 0 / 0.5247 GB, free: 9.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00051/0.3351, allocations: 86.94 kB / 0.5248 GB, free: 9.582 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.000798/0.3359, allocations: 0.9691 MB / 0.5257 GB, free: 8.777 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007224/0.3367, allocations: 415.6 kB / 0.5261 GB, free: 8.562 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3367, allocations: 5.656 kB / 0.5261 GB, free: 8.559 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002048/0.3369, allocations: 182.6 kB / 0.5263 GB, free: 8.426 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004858/0.3374, allocations: 56.91 kB / 0.5264 GB, free: 8.406 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004437/0.3418, allocations: 3.582 MB / 0.5299 GB, free: 6.051 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004277/0.3423, allocations: 0.8415 MB / 0.5307 GB, free: 5.336 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001955/0.3425, allocations: 66.39 kB / 0.5307 GB, free: 5.324 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.3427, allocations: 127.7 kB / 0.5309 GB, free: 5.227 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3427, allocations: 0 / 0.5309 GB, free: 5.227 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02643/0.3691, allocations: 7.336 MB / 0.538 GB, free: 2.211 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.33, allocations: 14.66 kB / 0.538 GB, free: 2.199 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)