Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",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.001172/0.001172, allocations: 110.5 kB / 16.51 MB, free: 6.707 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.001248/0.001248, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.212/1.212, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1583/0.1583, allocations: 38.04 MB / 329.3 MB, free: 9.082 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001073, allocations: 57.23 kB / 398.2 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0789/0.07999, allocations: 58.06 MB / 456.3 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.002837/0.08286, allocations: 2.182 MB / 458.4 MB, free: 6.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002669/0.08555, allocations: 2.187 MB / 460.6 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.668e-05/0.08561, allocations: 0 / 460.6 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.08575, allocations: 7.922 kB / 460.6 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.892e-05/0.08586, allocations: 47.81 kB / 460.7 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001441/0.08731, allocations: 0.6723 MB / 461.3 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001472/0.08746, allocations: 179.5 kB / 461.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.551e-05/0.08751, allocations: 7.938 kB / 461.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.04e-05/0.08758, allocations: 39.84 kB / 461.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.997e-05/0.08767, allocations: 55.81 kB / 461.6 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.375e-05/0.08769, allocations: 4 kB / 461.6 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001431/0.08912, allocations: 1.216 MB / 462.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.803e-05/0.08918, allocations: 39.83 kB / 462.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.504e-05/0.08924, allocations: 39.75 kB / 462.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001153/0.0904, allocations: 1.275 MB / 464.2 MB, free: 476 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.09041, allocations: 4 kB / 464.2 MB, free: 472 kB / 334.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.09042, allocations: 0 / 464.2 MB, free: 472 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.09043, allocations: 0 / 464.2 MB, free: 472 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000559/0.09099, allocations: 0.5318 MB / 464.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.09103, allocations: 8.031 kB / 464.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.446e-05/0.09111, allocations: 74.36 kB / 464.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.666e-05/0.09115, allocations: 20.75 kB / 464.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001699/0.09133, allocations: 200 kB / 465 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.09135, allocations: 15.92 kB / 465 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.262e-05/0.09137, allocations: 4 kB / 465 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.09156, allocations: 123.9 kB / 465.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.941e-06/0.09158, allocations: 0 / 465.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/0.09159, allocations: 4 kB / 465.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.0916, allocations: 0 / 465.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001601/0.09177, allocations: 76.17 kB / 465.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003709/0.09214, allocations: 360.9 kB / 465.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/0.09225, allocations: 74.48 kB / 465.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.749e-05/0.09233, allocations: 60.86 kB / 465.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.033e-06/0.09234, allocations: 8 kB / 465.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.767e-05/0.09237, allocations: 34.5 kB / 465.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.082e-06/0.09237, allocations: 0 / 465.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003243/0.0927, allocations: 227.2 kB / 466 MB, free: 14.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.904e-05/0.09277, allocations: 89.09 kB / 466.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.09288, allocations: 157 kB / 466.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/0.0929, allocations: 25.7 kB / 466.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.824e-05/0.09296, allocations: 112 kB / 466.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.625e-05/0.09301, allocations: 55.28 kB / 466.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.872e-05/0.09305, allocations: 25.7 kB / 466.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.09317, allocations: 322.8 kB / 466.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.402e-05/0.09323, allocations: 35.98 kB / 466.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.09e-05/0.09328, allocations: 42.84 kB / 466.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.09345, allocations: 172.2 kB / 467 MB, free: 13.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.09346, allocations: 4 kB / 467 MB, free: 13.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001978/0.09366, allocations: 171.1 kB / 467.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.409e-05/0.09372, allocations: 57.73 kB / 467.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.09373, allocations: 0 / 467.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.676e-06/0.09374, allocations: 0 / 467.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.01e-07/0.09374, allocations: 0 / 467.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.09375, allocations: 0 / 467.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.387e-05/0.09381, allocations: 15.78 kB / 467.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.09384, allocations: 8 kB / 467.3 MB, free: 13.13 MB / 350.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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001215/0.09396, allocations: 175.4 kB / 467.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.516e-05/0.094, allocations: 15.89 kB / 467.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.295e-05/0.09402, allocations: 8.844 kB / 467.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.09403, allocations: 4 kB / 467.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.09404, allocations: 0 / 467.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-06/0.09404, allocations: 0 / 467.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.09424, allocations: 209.5 kB / 467.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.09425, allocations: 8 kB / 467.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.09425, allocations: 0 / 467.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.09426, allocations: 0 / 467.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.09427, allocations: 7.984 kB / 467.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.09428, allocations: 0 / 467.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.09428, allocations: 0 / 467.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003387/0.09463, allocations: 380.3 kB / 468.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.716e-05/0.09467, allocations: 96.8 kB / 468.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.139e-05/0.0947, allocations: 7.984 kB / 468.2 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.434e-05/0.09477, allocations: 0 / 468.2 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.248e-05/0.0948, allocations: 7.984 kB / 468.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.09481, allocations: 4 kB / 468.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.805e-05/0.09488, allocations: 113.7 kB / 468.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09489, allocations: 8.031 kB / 468.3 MB, free: 12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006569/0.09555, allocations: 331.8 kB / 468.6 MB, free: 11.68 MB / 350.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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001357/0.09692, allocations: 1.282 MB / 469.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003153/0.09724, allocations: 331.3 kB / 470.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.09725, allocations: 0 / 470.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001918/0.09745, allocations: 255.3 kB / 470.5 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/0.09776, allocations: 21.98 kB / 470.5 MB, free: 9.746 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002063/0.09983, allocations: 2.344 MB / 472.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000241/0.1001, allocations: 0.7277 MB / 473.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.412e-05/0.1001, allocations: 8.031 kB / 473.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.621e-05/0.1001, allocations: 35.42 kB / 473.6 MB, free: 6.523 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1001, allocations: 3.938 kB / 473.6 MB, free: 6.52 MB / 350.1 MB [CodegenCFunctions.tpl:5622:13-5622:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].