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.001404, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.258/1.258, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0008366/0.0008367, allocations: 92.08 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1627/0.1627, allocations: 38.08 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003092/0.0003093, allocations: 8 kB / 424.1 MB, free: 37.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.271, allocations: 56.33 MB / 480.4 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1221/0.3932, allocations: 92.53 MB / 0.5595 GB, free: 9.871 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.3935, allocations: 75.95 kB / 0.5596 GB, free: 9.797 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04231/0.4358, allocations: 12.31 MB / 0.5716 GB, free: 13.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4358, allocations: 0 / 0.5716 GB, free: 13.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.537e-05/0.4358, allocations: 4 kB / 0.5716 GB, free: 13.46 MB / 410.7 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.0009924/0.4368, allocations: 0.6325 MB / 0.5722 GB, free: 12.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.4369, allocations: 8.031 kB / 0.5722 GB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.816e-05/0.437, allocations: 50.48 kB / 0.5723 GB, free: 12.71 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.882e-05/0.437, allocations: 15.77 kB / 0.5723 GB, free: 12.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002072/0.4372, allocations: 210.6 kB / 0.5725 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.536e-06/0.4372, allocations: 4 kB / 0.5725 GB, free: 12.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.274e-05/0.4373, allocations: 4 kB / 0.5725 GB, free: 12.44 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000195/0.4375, allocations: 130.6 kB / 0.5726 GB, free: 12.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.971e-06/0.4375, allocations: 0 / 0.5726 GB, free: 12.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.4375, allocations: 3.984 kB / 0.5726 GB, free: 12.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.4375, allocations: 0 / 0.5726 GB, free: 12.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001054/0.4376, allocations: 100.3 kB / 0.5727 GB, free: 12.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001925/0.4378, allocations: 206 kB / 0.5729 GB, free: 11.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.438, allocations: 163.5 kB / 0.5731 GB, free: 11.78 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.384e-06/0.438, allocations: 0 / 0.5731 GB, free: 11.78 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.237e-05/0.438, allocations: 34.59 kB / 0.5731 GB, free: 11.74 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 8.32e-07/0.438, allocations: 0 / 0.5731 GB, free: 11.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.0006385/0.4387, allocations: 0.5647 MB / 0.5737 GB, free: 11.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.439e-05/0.4387, allocations: 109.1 kB / 0.5738 GB, free: 11.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.4389, allocations: 151 kB / 0.5739 GB, free: 10.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.4389, allocations: 29.64 kB / 0.574 GB, free: 10.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.72e-05/0.439, allocations: 108.8 kB / 0.5741 GB, free: 10.72 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.532e-05/0.4391, allocations: 134 kB / 0.5742 GB, free: 10.59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.51e-06/0.4391, allocations: 0 / 0.5742 GB, free: 10.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.4392, allocations: 338.8 kB / 0.5745 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.495e-05/0.4393, allocations: 91.95 kB / 0.5746 GB, free: 10.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.913e-05/0.4394, allocations: 91.97 kB / 0.5747 GB, free: 10.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001739/0.4396, allocations: 182.9 kB / 0.5749 GB, free: 9.887 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4396, allocations: 3.938 kB / 0.5749 GB, free: 9.883 MB / 410.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003546/0.4399, allocations: 335 kB / 0.5752 GB, free: 9.543 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.989e-05/0.44, allocations: 84.3 kB / 0.5753 GB, free: 9.457 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.4401, allocations: 7.984 kB / 0.5753 GB, free: 9.449 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.4401, allocations: 0 / 0.5753 GB, free: 9.449 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.4401, allocations: 0 / 0.5753 GB, free: 9.449 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.4401, allocations: 0 / 0.5753 GB, free: 9.449 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.678e-05/0.4402, allocations: 23.69 kB / 0.5753 GB, free: 9.426 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.068e-05/0.4402, allocations: 8 kB / 0.5753 GB, free: 9.418 MB / 410.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 () * Number of clocked 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.4404, allocations: 239.3 kB / 0.5755 GB, free: 9.168 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.651e-05/0.4405, allocations: 27.66 kB / 0.5756 GB, free: 9.141 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.189e-05/0.4405, allocations: 22.69 kB / 0.5756 GB, free: 9.121 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.4405, allocations: 0 / 0.5756 GB, free: 9.121 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4405, allocations: 0 / 0.5756 GB, free: 9.121 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.4405, allocations: 0 / 0.5756 GB, free: 9.121 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001786/0.4407, allocations: 237.4 kB / 0.5758 GB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.4407, allocations: 0 / 0.5758 GB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.12e-07/0.4407, allocations: 0 / 0.5758 GB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.4407, allocations: 0 / 0.5758 GB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.4408, allocations: 11.98 kB / 0.5758 GB, free: 8.828 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.4408, allocations: 0 / 0.5758 GB, free: 8.828 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.4408, allocations: 0 / 0.5758 GB, free: 8.828 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009113/0.4417, allocations: 0.9004 MB / 0.5767 GB, free: 7.902 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.379e-05/0.4417, allocations: 100.7 kB / 0.5768 GB, free: 7.785 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.129e-05/0.4418, allocations: 8 kB / 0.5768 GB, free: 7.777 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.651e-05/0.4418, allocations: 4 kB / 0.5768 GB, free: 7.773 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3e-05/0.4419, allocations: 8 kB / 0.5768 GB, free: 7.766 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.4419, allocations: 12 kB / 0.5768 GB, free: 7.754 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.704e-05/0.442, allocations: 131.2 kB / 0.5769 GB, free: 7.625 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.442, allocations: 4.031 kB / 0.5769 GB, free: 7.621 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001035/0.443, allocations: 395.6 kB / 0.5773 GB, free: 7.234 MB / 410.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 () * Number of clocked 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.002428/0.4455, allocations: 1.757 MB / 0.579 GB, free: 5.445 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.4469, allocations: 1.589 MB / 0.5806 GB, free: 3.844 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4469, allocations: 0 / 0.5806 GB, free: 3.844 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/0.448, allocations: 1.366 MB / 0.5819 GB, free: 2.465 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001685/0.4481, allocations: 19.92 kB / 0.5819 GB, free: 2.445 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002627/0.4508, allocations: 2.062 MB / 0.584 GB, free: 324 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.4511, allocations: 0.7637 MB / 0.5847 GB, free: 15.53 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 1.335e-05/0.4511, allocations: 0 / 0.5847 GB, free: 15.53 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.585e-05/0.4512, allocations: 43.42 kB / 0.5847 GB, free: 15.48 MB / 426.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4512, allocations: 0 / 0.5847 GB, free: 15.48 MB / 426.7 MB [CodegenCFunctions.tpl:5437:13-5437:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].