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.0008174/0.0008171, allocations: 97.28 kB / 16.65 MB, free: 6.59 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.001094/0.001094, allocations: 181.3 kB / 17.56 MB, free: 6.203 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.319/1.319, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1846/0.1846, allocations: 38.05 MB / 310.1 MB, free: 6 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.0006008/0.0006011, allocations: 19.98 kB / 377.3 MB, free: 2.695 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2125/0.2131, allocations: 56.32 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.001825/0.2149, allocations: 1.852 MB / 435.4 MB, free: 16.79 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.2162, allocations: 1.123 MB / 436.6 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.606e-05/0.2162, allocations: 0 / 436.6 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.2164, allocations: 11.92 kB / 436.6 MB, free: 15.65 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.993e-05/0.2165, allocations: 59.78 kB / 436.6 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006081/0.2171, allocations: 250 kB / 436.9 MB, free: 15.35 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001609/0.2173, allocations: 263.3 kB / 437.1 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.716e-05/0.2173, allocations: 11.97 kB / 437.2 MB, free: 15.08 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.448e-05/0.2174, allocations: 35.84 kB / 437.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.881e-05/0.2175, allocations: 79.72 kB / 437.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.2175, allocations: 4 kB / 437.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004178/0.218, allocations: 407.2 kB / 437.7 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.136e-05/0.218, allocations: 35.89 kB / 437.7 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.128e-05/0.2181, allocations: 61.45 kB / 437.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000386/0.2184, allocations: 0.5243 MB / 438.3 MB, free: 13.94 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2185, allocations: 7.938 kB / 438.3 MB, free: 13.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2185, allocations: 0 / 438.3 MB, free: 13.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.616e-06/0.2185, allocations: 0 / 438.3 MB, free: 13.93 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.0003158/0.2188, allocations: 452.8 kB / 438.7 MB, free: 13.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.2188, allocations: 8.031 kB / 438.7 MB, free: 13.43 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.574e-05/0.2189, allocations: 62.55 kB / 438.8 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.001e-05/0.2189, allocations: 16.75 kB / 438.8 MB, free: 13.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.2191, allocations: 204 kB / 439 MB, free: 13.1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.091e-05/0.2191, allocations: 4.375 kB / 439 MB, free: 13.1 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.2191, allocations: 11.94 kB / 439 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001715/0.2193, allocations: 125.6 kB / 439.2 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.2193, allocations: 0 / 439.2 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.2193, allocations: 8 kB / 439.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.2193, allocations: 0 / 439.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.84e-05/0.2194, allocations: 87.88 kB / 439.3 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002851/0.2197, allocations: 348.5 kB / 439.6 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001002/0.2198, allocations: 130.5 kB / 439.7 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.555e-05/0.2199, allocations: 116.9 kB / 439.8 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.825e-06/0.2199, allocations: 4 kB / 439.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.359e-05/0.2199, allocations: 38.5 kB / 439.9 MB, free: 12.17 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.031e-06/0.2199, allocations: 3.938 kB / 439.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0003597/0.2203, allocations: 300.2 kB / 440.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/0.2203, allocations: 93.09 kB / 440.3 MB, free: 11.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.021e-05/0.2204, allocations: 137.1 kB / 440.4 MB, free: 11.61 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.043e-05/0.2204, allocations: 25.7 kB / 440.4 MB, free: 11.58 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.481e-05/0.2205, allocations: 108.4 kB / 440.5 MB, free: 11.47 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.492e-05/0.2205, allocations: 70.97 kB / 440.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.526e-05/0.2205, allocations: 21.7 kB / 440.6 MB, free: 11.37 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.975e-05/0.2206, allocations: 322.8 kB / 440.9 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.617e-05/0.2207, allocations: 55.97 kB / 441 MB, free: 10.99 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.076e-05/0.2207, allocations: 59.94 kB / 441 MB, free: 10.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/0.2209, allocations: 224.2 kB / 441.3 MB, free: 10.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2209, allocations: 0 / 441.3 MB, free: 10.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001811/0.2211, allocations: 231 kB / 441.5 MB, free: 10.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.194e-05/0.2211, allocations: 53.67 kB / 441.5 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2211, allocations: 8.062 kB / 441.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.2212, allocations: 0 / 441.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.2212, allocations: 0 / 441.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.2212, allocations: 0 / 441.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.204e-05/0.2212, allocations: 11.84 kB / 441.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.2213, allocations: 8 kB / 441.6 MB, free: 10.38 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 9.33e-05/0.2214, allocations: 179.5 kB / 441.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.22e-05/0.2214, allocations: 23.75 kB / 441.8 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.074e-05/0.2214, allocations: 9.188 kB / 441.8 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2214, allocations: 4 kB / 441.8 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2214, allocations: 4 kB / 441.8 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.2214, allocations: 0 / 441.8 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.2216, allocations: 209.4 kB / 442 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.2216, allocations: 0 / 442 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.112e-06/0.2216, allocations: 3.938 kB / 442 MB, free: 9.891 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.2216, allocations: 4 kB / 442 MB, free: 9.887 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.2216, allocations: 4 kB / 442 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.2216, allocations: 0 / 442 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2216, allocations: 4 kB / 442 MB, free: 9.879 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003162/0.2219, allocations: 465 kB / 442.5 MB, free: 9.402 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.269e-05/0.222, allocations: 96.84 kB / 442.6 MB, free: 9.289 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.957e-05/0.222, allocations: 7.938 kB / 442.6 MB, free: 9.281 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.352e-05/0.2221, allocations: 4 kB / 442.6 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.978e-05/0.2221, allocations: 8 kB / 442.6 MB, free: 9.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.2221, allocations: 4 kB / 442.6 MB, free: 9.266 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.63e-05/0.2221, allocations: 103.2 kB / 442.7 MB, free: 9.164 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2222, allocations: 0 / 442.7 MB, free: 9.164 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003841/0.2225, allocations: 152 kB / 442.8 MB, free: 9.016 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.0008725/0.2234, allocations: 1.229 MB / 444.1 MB, free: 7.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003898/0.2238, allocations: 0.5694 MB / 444.6 MB, free: 7.168 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2238, allocations: 4.094 kB / 444.6 MB, free: 7.164 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002434/0.2241, allocations: 467.3 kB / 445.1 MB, free: 6.695 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.2244, allocations: 15.98 kB / 445.1 MB, free: 6.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001762/0.2261, allocations: 2.492 MB / 447.6 MB, free: 4.109 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001378/0.2263, allocations: 0.7278 MB / 448.3 MB, free: 3.355 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.748e-05/0.2263, allocations: 256 / 448.3 MB, free: 3.355 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.663e-05/0.2264, allocations: 39.42 kB / 448.4 MB, free: 3.316 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2264, allocations: 0 / 448.4 MB, free: 3.316 MB / 318.1 MB [CodegenCFunctions.tpl:5473:13-5473:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].