Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3.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_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat3",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.001404/0.001403, allocations: 177.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.674/1.674, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009414/0.0009415, allocations: 88.47 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1969/0.1969, allocations: 37.99 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.086e-05/2.076e-05, allocations: 0 / 410.7 MB, free: 46.88 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1287, allocations: 56.33 MB / 467 MB, free: 6.477 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4573/0.5861, allocations: 91.77 MB / 0.5457 GB, free: 3.035 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/0.5865, allocations: 80.83 kB / 0.5457 GB, free: 2.957 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04395/0.6304, allocations: 12.22 MB / 0.5577 GB, free: 6.734 MB / 395.1 MB Notification: Performance of FrontEnd: time 4.799e-06/0.6305, allocations: 0 / 0.5577 GB, free: 6.734 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.524e-05/0.6305, allocations: 7.938 kB / 0.5577 GB, free: 6.727 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001222/0.6318, allocations: 0.6124 MB / 0.5583 GB, free: 6.062 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.69e-05/0.6318, allocations: 12.03 kB / 0.5583 GB, free: 6.051 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.343e-05/0.6319, allocations: 15.72 kB / 0.5583 GB, free: 6.035 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.6322, allocations: 206.7 kB / 0.5585 GB, free: 5.793 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.6322, allocations: 4 kB / 0.5585 GB, free: 5.789 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/0.6322, allocations: 4 kB / 0.5585 GB, free: 5.785 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001685/0.6324, allocations: 92.3 kB / 0.5586 GB, free: 5.691 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001795/0.6326, allocations: 130.6 kB / 0.5587 GB, free: 5.559 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.6326, allocations: 0 / 0.5587 GB, free: 5.559 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.6326, allocations: 0 / 0.5587 GB, free: 5.559 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.6326, allocations: 0 / 0.5587 GB, free: 5.559 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002141/0.6329, allocations: 178.2 kB / 0.5589 GB, free: 5.348 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000192/0.6331, allocations: 155.5 kB / 0.559 GB, free: 5.188 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001454/0.6332, allocations: 141.2 kB / 0.5592 GB, free: 5.047 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.002e-06/0.6332, allocations: 4 kB / 0.5592 GB, free: 5.043 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.6333, allocations: 30.56 kB / 0.5592 GB, free: 5.004 MB / 395.1 MB Notification: Performance of pre-optimization done (n=40): time 3.396e-06/0.6333, allocations: 0 / 0.5592 GB, free: 5.004 MB / 395.1 MB Notification: Performance of matching and sorting (n=40): time 0.0005069/0.6338, allocations: 271.5 kB / 0.5595 GB, free: 4.734 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.917e-05/0.6339, allocations: 109.1 kB / 0.5596 GB, free: 4.609 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.634, allocations: 147 kB / 0.5597 GB, free: 4.461 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.634, allocations: 29.73 kB / 0.5597 GB, free: 4.426 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.466e-05/0.6341, allocations: 100.9 kB / 0.5598 GB, free: 4.324 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.6342, allocations: 134 kB / 0.56 GB, free: 4.191 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.801e-06/0.6342, allocations: 3.938 kB / 0.56 GB, free: 4.188 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.6344, allocations: 330.8 kB / 0.5603 GB, free: 3.855 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.791e-05/0.6345, allocations: 95.95 kB / 0.5604 GB, free: 3.762 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.663e-05/0.6346, allocations: 95.89 kB / 0.5605 GB, free: 3.668 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001869/0.6348, allocations: 127.9 kB / 0.5606 GB, free: 3.543 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.6348, allocations: 3.984 kB / 0.5606 GB, free: 3.539 MB / 395.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003978/0.6352, allocations: 273.5 kB / 0.5609 GB, free: 3.266 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.7e-05/0.6353, allocations: 85.62 kB / 0.5609 GB, free: 3.176 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.6353, allocations: 0 / 0.5609 GB, free: 3.176 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.6353, allocations: 0 / 0.5609 GB, free: 3.176 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.639e-06/0.6354, allocations: 4 kB / 0.5609 GB, free: 3.172 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.6354, allocations: 0 / 0.5609 GB, free: 3.172 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.596e-05/0.6354, allocations: 23.69 kB / 0.561 GB, free: 3.148 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.852e-05/0.6355, allocations: 8 kB / 0.561 GB, free: 3.141 MB / 395.1 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.0002137/0.6357, allocations: 196.5 kB / 0.5612 GB, free: 2.938 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006587/0.6364, allocations: 0.5089 MB / 0.5617 GB, free: 2.422 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.375e-05/0.6364, allocations: 27.7 kB / 0.5617 GB, free: 2.395 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.239e-05/0.6365, allocations: 19.39 kB / 0.5617 GB, free: 2.379 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.6365, allocations: 0 / 0.5617 GB, free: 2.379 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.6365, allocations: 0 / 0.5617 GB, free: 2.379 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.6365, allocations: 0 / 0.5617 GB, free: 2.379 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001985/0.6367, allocations: 201.8 kB / 0.5619 GB, free: 2.145 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.6367, allocations: 0 / 0.5619 GB, free: 2.145 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.01e-07/0.6367, allocations: 0 / 0.5619 GB, free: 2.145 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.6367, allocations: 4 kB / 0.5619 GB, free: 2.141 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.202e-05/0.6368, allocations: 4.031 kB / 0.5619 GB, free: 2.137 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.6368, allocations: 8 kB / 0.5619 GB, free: 2.129 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.6368, allocations: 0 / 0.5619 GB, free: 2.129 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007029/0.6375, allocations: 0.5356 MB / 0.5624 GB, free: 1.574 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.735e-05/0.6376, allocations: 100.8 kB / 0.5625 GB, free: 1.457 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.809e-05/0.6376, allocations: 11.94 kB / 0.5625 GB, free: 1.445 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.18e-05/0.6377, allocations: 11.94 kB / 0.5626 GB, free: 1.434 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.987e-05/0.6377, allocations: 8 kB / 0.5626 GB, free: 1.426 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.6377, allocations: 12.03 kB / 0.5626 GB, free: 1.414 MB / 395.1 MB Notification: Performance of sorting global known variables: time 9.06e-05/0.6378, allocations: 123.2 kB / 0.5627 GB, free: 1.293 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6378, allocations: 0 / 0.5627 GB, free: 1.293 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001534/0.6394, allocations: 399.6 kB / 0.5631 GB, free: 0.9023 MB / 395.1 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.002104/0.6415, allocations: 1.387 MB / 0.5644 GB, free: 15.48 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.001473/0.643, allocations: 1.573 MB / 0.566 GB, free: 13.9 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.643, allocations: 0 / 0.566 GB, free: 13.9 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001067/0.6441, allocations: 1.358 MB / 0.5673 GB, free: 12.53 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.6443, allocations: 12 kB / 0.5673 GB, free: 12.52 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.6455, allocations: 0.7209 MB / 0.568 GB, free: 11.76 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/0.646, allocations: 0.7674 MB / 0.5688 GB, free: 10.96 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 1.29e-05/0.646, allocations: 0 / 0.5688 GB, free: 10.96 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.907e-05/0.6461, allocations: 51.42 kB / 0.5688 GB, free: 10.91 MB / 411.1 MB Notification: Performance of SimCode: time 3.81e-07/0.6461, allocations: 0 / 0.5688 GB, free: 10.91 MB / 411.1 MB [CodegenCFunctions.tpl:4892:15-4892:15:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].