Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",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.001107/0.001107, allocations: 177.1 kB / 8.35 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.742/1.742, 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.001179/0.001179, allocations: 79.78 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.2044/0.2044, allocations: 37.99 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.78e-05/1.776e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1287, allocations: 56.33 MB / 467 MB, free: 6.477 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4526/0.5813, allocations: 91.77 MB / 0.5457 GB, free: 3.039 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002898/0.5816, allocations: 83.94 kB / 0.5457 GB, free: 2.957 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04503/0.6267, allocations: 12.05 MB / 0.5575 GB, free: 6.91 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.6267, allocations: 4 kB / 0.5575 GB, free: 6.906 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.421e-05/0.6267, allocations: 4 kB / 0.5575 GB, free: 6.902 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001098/0.6278, allocations: 0.5658 MB / 0.5581 GB, free: 6.285 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.6279, allocations: 8.031 kB / 0.5581 GB, free: 6.277 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.227e-05/0.628, allocations: 15.8 kB / 0.5581 GB, free: 6.262 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002607/0.6282, allocations: 202.7 kB / 0.5583 GB, free: 6.023 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.6283, allocations: 0 / 0.5583 GB, free: 6.023 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.6283, allocations: 0 / 0.5583 GB, free: 6.023 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001263/0.6284, allocations: 55.98 kB / 0.5583 GB, free: 5.969 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001353/0.6285, allocations: 98 kB / 0.5584 GB, free: 5.867 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.6286, allocations: 0 / 0.5584 GB, free: 5.867 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.6286, allocations: 0 / 0.5584 GB, free: 5.867 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.6286, allocations: 7.984 kB / 0.5584 GB, free: 5.859 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001818/0.6288, allocations: 157.9 kB / 0.5586 GB, free: 5.668 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001223/0.6289, allocations: 95.25 kB / 0.5587 GB, free: 5.566 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.629, allocations: 88.86 kB / 0.5588 GB, free: 5.477 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-06/0.629, allocations: 0 / 0.5588 GB, free: 5.477 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.6291, allocations: 34.56 kB / 0.5588 GB, free: 5.434 MB / 395.1 MB Notification: Performance of pre-optimization done (n=24): time 1.092e-06/0.6291, allocations: 0 / 0.5588 GB, free: 5.434 MB / 395.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004198/0.6295, allocations: 181.4 kB / 0.559 GB, free: 5.25 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.004e-05/0.6296, allocations: 93.05 kB / 0.5591 GB, free: 5.141 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.6297, allocations: 137.3 kB / 0.5592 GB, free: 4.996 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.6298, allocations: 25.7 kB / 0.5592 GB, free: 4.965 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.006e-05/0.6298, allocations: 100.6 kB / 0.5593 GB, free: 4.863 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.886e-05/0.6299, allocations: 78.81 kB / 0.5594 GB, free: 4.785 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.446e-06/0.63, allocations: 4.031 kB / 0.5594 GB, free: 4.781 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.6301, allocations: 330.8 kB / 0.5597 GB, free: 4.449 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.241e-05/0.6302, allocations: 60.38 kB / 0.5598 GB, free: 4.391 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.688e-05/0.6303, allocations: 51.84 kB / 0.5598 GB, free: 4.34 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001416/0.6304, allocations: 76.7 kB / 0.5599 GB, free: 4.266 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.6304, allocations: 3.953 kB / 0.5599 GB, free: 4.262 MB / 395.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002727/0.6307, allocations: 182.5 kB / 0.5601 GB, free: 4.078 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.534e-05/0.6308, allocations: 61.67 kB / 0.5601 GB, free: 4.012 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.6308, allocations: 3.984 kB / 0.5601 GB, free: 4.008 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.6308, allocations: 4.062 kB / 0.5601 GB, free: 4.004 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.443e-06/0.6308, allocations: 0 / 0.5601 GB, free: 4.004 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.6308, allocations: 0 / 0.5601 GB, free: 4.004 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.862e-05/0.6309, allocations: 15.78 kB / 0.5602 GB, free: 3.988 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.6309, allocations: 8 kB / 0.5602 GB, free: 3.98 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.0001682/0.6311, allocations: 176.5 kB / 0.5603 GB, free: 3.797 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004487/0.6316, allocations: 325.1 kB / 0.5606 GB, free: 3.473 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.538e-05/0.6316, allocations: 19.81 kB / 0.5607 GB, free: 3.453 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.666e-05/0.6316, allocations: 24.72 kB / 0.5607 GB, free: 3.43 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.6316, allocations: 4.031 kB / 0.5607 GB, free: 3.426 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.217e-06/0.6316, allocations: 0 / 0.5607 GB, free: 3.426 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.6316, allocations: 0 / 0.5607 GB, free: 3.426 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001621/0.6318, allocations: 178 kB / 0.5609 GB, free: 3.215 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.6318, allocations: 0 / 0.5609 GB, free: 3.215 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.6318, allocations: 0 / 0.5609 GB, free: 3.215 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.6318, allocations: 0 / 0.5609 GB, free: 3.215 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.6319, allocations: 8 kB / 0.5609 GB, free: 3.207 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.6319, allocations: 0 / 0.5609 GB, free: 3.207 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.6319, allocations: 0 / 0.5609 GB, free: 3.207 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004926/0.6324, allocations: 364.6 kB / 0.5612 GB, free: 2.832 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.812e-05/0.6325, allocations: 96.81 kB / 0.5613 GB, free: 2.719 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.944e-05/0.6325, allocations: 4 kB / 0.5613 GB, free: 2.715 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.809e-05/0.6325, allocations: 4 kB / 0.5613 GB, free: 2.711 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.154e-05/0.6326, allocations: 3.984 kB / 0.5613 GB, free: 2.707 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/0.6326, allocations: 12 kB / 0.5613 GB, free: 2.695 MB / 395.1 MB Notification: Performance of sorting global known variables: time 7.387e-05/0.6327, allocations: 111.1 kB / 0.5614 GB, free: 2.586 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6327, allocations: 0 / 0.5614 GB, free: 2.586 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.00125/0.6339, allocations: 383.5 kB / 0.5618 GB, free: 2.211 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.001702/0.6356, allocations: 1.195 MB / 0.563 GB, free: 0.9883 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0007005/0.6364, allocations: 0.6906 MB / 0.5636 GB, free: 292 kB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.6364, allocations: 0 / 0.5636 GB, free: 292 kB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005166/0.6369, allocations: 0.5618 MB / 0.5642 GB, free: 15.71 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001703/0.6371, allocations: 4 kB / 0.5642 GB, free: 15.71 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009086/0.638, allocations: 0.5258 MB / 0.5647 GB, free: 15.14 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003634/0.6384, allocations: 0.7316 MB / 0.5654 GB, free: 14.38 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 1.19e-05/0.6384, allocations: 0 / 0.5654 GB, free: 14.38 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.664e-05/0.6384, allocations: 39.55 kB / 0.5655 GB, free: 14.34 MB / 411.1 MB Notification: Performance of SimCode: time 2.71e-07/0.6384, allocations: 7.938 kB / 0.5655 GB, free: 14.34 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].