Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat0",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002108/0.002108, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.626/1.626, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008039/0.0008039, allocations: 82.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1676/0.1676, allocations: 37.98 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.105e-05/3.107e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1192, allocations: 56.32 MB / 474.1 MB, free: 4.711 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.417/0.5363, allocations: 92.52 MB / 0.5534 GB, free: 9.453 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000273/0.5367, allocations: 82.5 kB / 0.5535 GB, free: 9.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03824/0.5749, allocations: 11.93 MB / 0.5651 GB, free: 15.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5749, allocations: 0 / 0.5651 GB, free: 15.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.575, allocations: 0 / 0.5651 GB, free: 15.53 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0008695/0.5758, allocations: 0.5172 MB / 0.5656 GB, free: 14.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.5759, allocations: 12.03 kB / 0.5656 GB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.076e-05/0.5759, allocations: 34.44 kB / 0.5657 GB, free: 14.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/0.576, allocations: 11.86 kB / 0.5657 GB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000209/0.5762, allocations: 179 kB / 0.5658 GB, free: 14.69 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.5762, allocations: 0 / 0.5658 GB, free: 14.69 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.5763, allocations: 11.94 kB / 0.5659 GB, free: 14.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001248/0.5764, allocations: 53.36 kB / 0.5659 GB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.5764, allocations: 0 / 0.5659 GB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.5764, allocations: 4 kB / 0.5659 GB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.5764, allocations: 0 / 0.5659 GB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.694e-05/0.5765, allocations: 23.55 kB / 0.5659 GB, free: 14.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001754/0.5767, allocations: 169.1 kB / 0.5661 GB, free: 14.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.419e-05/0.5767, allocations: 40.38 kB / 0.5661 GB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.899e-05/0.5768, allocations: 47.44 kB / 0.5662 GB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.794e-06/0.5768, allocations: 0 / 0.5662 GB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.5768, allocations: 30.56 kB / 0.5662 GB, free: 14.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 1.143e-06/0.5769, allocations: 0 / 0.5662 GB, free: 14.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002478/0.5771, allocations: 117.2 kB / 0.5663 GB, free: 14.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/0.5772, allocations: 89.09 kB / 0.5664 GB, free: 14.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.5773, allocations: 109.6 kB / 0.5665 GB, free: 13.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.5773, allocations: 25.7 kB / 0.5665 GB, free: 13.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.686e-05/0.5774, allocations: 97.72 kB / 0.5666 GB, free: 13.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.462e-05/0.5774, allocations: 23.44 kB / 0.5667 GB, free: 13.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.958e-06/0.5774, allocations: 7.938 kB / 0.5667 GB, free: 13.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.5776, allocations: 326.2 kB / 0.567 GB, free: 13.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.791e-05/0.5776, allocations: 19.98 kB / 0.567 GB, free: 13.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.198e-05/0.5777, allocations: 27.67 kB / 0.567 GB, free: 13.42 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.398e-05/0.5777, allocations: 61.52 kB / 0.5671 GB, free: 13.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.5777, allocations: 0 / 0.5671 GB, free: 13.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001638/0.5779, allocations: 118.4 kB / 0.5672 GB, free: 13.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.656e-05/0.578, allocations: 49.73 kB / 0.5672 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.578, allocations: 4 kB / 0.5672 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.578, allocations: 0 / 0.5672 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.51e-07/0.578, allocations: 0 / 0.5672 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.578, allocations: 0.8594 kB / 0.5672 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.378e-05/0.5781, allocations: 7.906 kB / 0.5672 GB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.912e-05/0.5781, allocations: 4 kB / 0.5672 GB, free: 13.17 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.5782, allocations: 145.9 kB / 0.5674 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.72e-05/0.5782, allocations: 7.906 kB / 0.5674 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.695e-05/0.5782, allocations: 12.62 kB / 0.5674 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.5782, allocations: 0 / 0.5674 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.5783, allocations: 0 / 0.5674 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.5783, allocations: 3.984 kB / 0.5674 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001416/0.5784, allocations: 172.2 kB / 0.5676 GB, free: 12.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.5784, allocations: 0 / 0.5676 GB, free: 12.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.204e-06/0.5784, allocations: 3.938 kB / 0.5676 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.5784, allocations: 0 / 0.5676 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.5785, allocations: 4 kB / 0.5676 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.5785, allocations: 0 / 0.5676 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.5785, allocations: 0 / 0.5676 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/0.5787, allocations: 221.9 kB / 0.5678 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.164e-05/0.5788, allocations: 85 kB / 0.5679 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.949e-05/0.5788, allocations: 4 kB / 0.5679 GB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.214e-05/0.5788, allocations: 0 / 0.5679 GB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.411e-05/0.5789, allocations: 7.438 kB / 0.5679 GB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.5789, allocations: 3.984 kB / 0.5679 GB, free: 12.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.59e-05/0.579, allocations: 90.84 kB / 0.568 GB, free: 12.35 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.579, allocations: 4.031 kB / 0.568 GB, free: 12.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009428/0.5799, allocations: 361.8 kB / 0.5683 GB, free: 12 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001556/0.5815, allocations: 1.054 MB / 0.5694 GB, free: 10.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002273/0.5817, allocations: 205.2 kB / 0.5696 GB, free: 10.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.5817, allocations: 0 / 0.5696 GB, free: 10.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.5819, allocations: 148.1 kB / 0.5697 GB, free: 10.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001456/0.582, allocations: 7.984 kB / 0.5697 GB, free: 10.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007293/0.5828, allocations: 330.8 kB / 0.57 GB, free: 10.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.583, allocations: 0.6926 MB / 0.5707 GB, free: 9.559 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.45e-05/0.5831, allocations: 12.11 kB / 0.5707 GB, free: 9.547 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.178e-05/0.5831, allocations: 17.88 kB / 0.5707 GB, free: 9.543 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5831, allocations: 3.938 kB / 0.5707 GB, free: 9.539 MB / 378.7 MB [CodegenCFunctions.tpl:5352:15-5352:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].