Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.TransDatFromEqCirc,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",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.001101/0.001106, allocations: 100.1 kB / 16.5 MB, free: 6.645 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.001107/0.001108, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.396/1.396, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1635/0.1635, allocations: 38 MB / 308.6 MB, free: 6.242 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 67.03 kB / 374.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2075, allocations: 55.24 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.002621/0.2102, allocations: 2.199 MB / 432.2 MB, free: 17.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.2113, allocations: 1.135 MB / 433.3 MB, free: 16.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.36e-05/0.2113, allocations: 3.938 kB / 433.3 MB, free: 16.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001157/0.2115, allocations: 11.92 kB / 433.3 MB, free: 16.4 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.662e-05/0.2116, allocations: 51.84 kB / 433.4 MB, free: 16.35 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005414/0.2121, allocations: 243.4 kB / 433.6 MB, free: 16.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000143/0.2123, allocations: 267.4 kB / 433.9 MB, free: 15.85 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.829e-05/0.2123, allocations: 4 kB / 433.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.572e-05/0.2124, allocations: 43.84 kB / 433.9 MB, free: 15.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.543e-05/0.2125, allocations: 79.72 kB / 434 MB, free: 15.72 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.109e-05/0.2125, allocations: 0 / 434 MB, free: 15.72 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004084/0.2129, allocations: 407.2 kB / 434.4 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.101e-05/0.2129, allocations: 35.89 kB / 434.4 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.829e-05/0.213, allocations: 39.69 kB / 434.5 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003725/0.2134, allocations: 0.5282 MB / 435 MB, free: 14.72 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2134, allocations: 0 / 435 MB, free: 14.72 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.2134, allocations: 0 / 435 MB, free: 14.72 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.356e-06/0.2134, allocations: 0 / 435 MB, free: 14.72 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003179/0.2137, allocations: 468.7 kB / 435.4 MB, free: 14.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.2137, allocations: 8.031 kB / 435.5 MB, free: 14.2 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.477e-05/0.2138, allocations: 58.53 kB / 435.5 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.242e-05/0.2138, allocations: 20.69 kB / 435.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.214, allocations: 204 kB / 435.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.447e-06/0.214, allocations: 4.375 kB / 435.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.328e-05/0.214, allocations: 7.938 kB / 435.7 MB, free: 13.87 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001676/0.2142, allocations: 137.6 kB / 435.9 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.2142, allocations: 0 / 435.9 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.2142, allocations: 3.984 kB / 435.9 MB, free: 13.72 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.2142, allocations: 12 kB / 435.9 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.857e-05/0.2143, allocations: 79.95 kB / 436 MB, free: 13.63 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002809/0.2146, allocations: 348.5 kB / 436.3 MB, free: 13.24 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.595e-05/0.2147, allocations: 134.5 kB / 436.4 MB, free: 13.1 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.509e-05/0.2148, allocations: 128.8 kB / 436.6 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.318e-06/0.2148, allocations: 3.938 kB / 436.6 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.596e-05/0.2148, allocations: 38.44 kB / 436.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 9.82e-07/0.2148, allocations: 0 / 436.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0003342/0.2152, allocations: 291.8 kB / 436.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.831e-05/0.2152, allocations: 97.09 kB / 437 MB, free: 12.51 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.319e-05/0.2153, allocations: 130.9 kB / 437.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.376e-06/0.2153, allocations: 29.73 kB / 437.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.912e-05/0.2153, allocations: 108.3 kB / 437.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.063e-05/0.2154, allocations: 67 kB / 437.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.572e-05/0.2154, allocations: 25.72 kB / 437.3 MB, free: 12.13 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.061e-05/0.2154, allocations: 322.8 kB / 437.7 MB, free: 11.81 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.767e-05/0.2155, allocations: 59.95 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.156e-05/0.2156, allocations: 59.91 kB / 437.8 MB, free: 11.69 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001449/0.2157, allocations: 224.2 kB / 438 MB, free: 11.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2157, allocations: 4.031 kB / 438 MB, free: 11.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001766/0.2159, allocations: 223.1 kB / 438.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.626e-05/0.2159, allocations: 53.67 kB / 438.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.216, allocations: 3.984 kB / 438.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.216, allocations: 4 kB / 438.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.216, allocations: 0 / 438.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.216, allocations: 0 / 438.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.649e-05/0.216, allocations: 11.84 kB / 438.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.003e-05/0.2161, allocations: 8 kB / 438.3 MB, free: 11.14 MB / 318.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 8.936e-05/0.2162, allocations: 183.5 kB / 438.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.281e-05/0.2162, allocations: 19.84 kB / 438.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.204e-05/0.2162, allocations: 9.188 kB / 438.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.2162, allocations: 3.938 kB / 438.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2162, allocations: 0 / 438.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.2162, allocations: 4 kB / 438.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001298/0.2164, allocations: 213.4 kB / 438.7 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.2164, allocations: 0 / 438.7 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-06/0.2164, allocations: 3.938 kB / 438.7 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.2164, allocations: 0 / 438.7 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.2164, allocations: 8 kB / 438.7 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.2164, allocations: 4 kB / 438.7 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2164, allocations: 0 / 438.7 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003255/0.2167, allocations: 461.4 kB / 439.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.375e-05/0.2168, allocations: 92.94 kB / 439.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.2168, allocations: 4 kB / 439.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.3e-05/0.2169, allocations: 4 kB / 439.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.133e-05/0.2169, allocations: 15.98 kB / 439.3 MB, free: 10.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.2169, allocations: 11.97 kB / 439.3 MB, free: 10.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.655e-05/0.217, allocations: 106.4 kB / 439.4 MB, free: 9.918 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.217, allocations: 0 / 439.4 MB, free: 9.918 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003784/0.2173, allocations: 143.8 kB / 439.6 MB, free: 9.777 MB / 318.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.0008622/0.2182, allocations: 1.232 MB / 440.8 MB, free: 8.512 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003758/0.2186, allocations: 0.5695 MB / 441.4 MB, free: 7.93 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2186, allocations: 0 / 441.4 MB, free: 7.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002198/0.2188, allocations: 467.2 kB / 441.8 MB, free: 7.461 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.2191, allocations: 15.98 kB / 441.8 MB, free: 7.445 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001682/0.2208, allocations: 2.468 MB / 444.3 MB, free: 4.895 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001212/0.2209, allocations: 0.7278 MB / 445 MB, free: 4.141 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.679e-05/0.221, allocations: 8.266 kB / 445 MB, free: 4.133 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.293e-05/0.221, allocations: 39.05 kB / 445.1 MB, free: 4.098 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.221, allocations: 0 / 445.1 MB, free: 4.098 MB / 318.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].