Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2.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.Z_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixTrDat2",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.000791/0.0007909, allocations: 92.06 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.0009411/0.0009411, allocations: 181.1 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.258/1.258, allocations: 205.4 MB / 223.7 MB, free: 13 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1629/0.1629, allocations: 38.06 MB / 310.1 MB, free: 5.898 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.0005307/0.0005308, allocations: 16 kB / 377.3 MB, free: 2.602 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2196, allocations: 56.33 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.001724/0.2213, allocations: 1.805 MB / 435.4 MB, free: 16.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002225/0.2236, allocations: 2.165 MB / 437.6 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.42e-05/0.2236, allocations: 0 / 437.6 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.659e-05/0.2237, allocations: 11.92 kB / 437.6 MB, free: 14.63 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.953e-05/0.2238, allocations: 31.83 kB / 437.6 MB, free: 14.6 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.2252, allocations: 0.6904 MB / 438.3 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.247e-05/0.2253, allocations: 115.7 kB / 438.4 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.595e-05/0.2254, allocations: 4.188 kB / 438.4 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.066e-05/0.2254, allocations: 31.84 kB / 438.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.269e-05/0.2255, allocations: 55.75 kB / 438.5 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.919e-06/0.2255, allocations: 4 kB / 438.5 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001312/0.2268, allocations: 1.232 MB / 439.7 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.046e-05/0.2269, allocations: 27.92 kB / 439.8 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.342e-05/0.227, allocations: 69.36 kB / 439.8 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.2281, allocations: 1.304 MB / 441.1 MB, free: 11.06 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.2281, allocations: 3.938 kB / 441.1 MB, free: 11.06 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2281, allocations: 0 / 441.1 MB, free: 11.06 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.2281, allocations: 0 / 441.1 MB, free: 11.06 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005161/0.2286, allocations: 0.5552 MB / 441.7 MB, free: 10.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.2287, allocations: 8.031 kB / 441.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.63e-05/0.2287, allocations: 46.73 kB / 441.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.559e-05/0.2287, allocations: 20.75 kB / 441.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.2288, allocations: 191.4 kB / 442 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.417e-06/0.2288, allocations: 11.92 kB / 442 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.2289, allocations: 0 / 442 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.229, allocations: 97.52 kB / 442.1 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.41e-06/0.229, allocations: 0 / 442.1 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-06/0.229, allocations: 4 kB / 442.1 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.166e-06/0.229, allocations: 0 / 442.1 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.745e-05/0.2291, allocations: 59.97 kB / 442.1 MB, free: 9.965 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.429e-05/0.2292, allocations: 193.4 kB / 442.3 MB, free: 9.727 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.071e-05/0.2293, allocations: 102.5 kB / 442.4 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.14e-05/0.2293, allocations: 88.86 kB / 442.5 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.643e-06/0.2293, allocations: 0 / 442.5 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.371e-05/0.2294, allocations: 38.55 kB / 442.5 MB, free: 9.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 8.52e-07/0.2294, allocations: 0 / 442.5 MB, free: 9.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003172/0.2297, allocations: 315.1 kB / 442.8 MB, free: 9.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.897e-05/0.2297, allocations: 97.14 kB / 442.9 MB, free: 9.047 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.867e-05/0.2298, allocations: 159 kB / 443.1 MB, free: 8.883 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.646e-06/0.2298, allocations: 25.7 kB / 443.1 MB, free: 8.852 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.483e-05/0.2299, allocations: 96.58 kB / 443.2 MB, free: 8.754 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.388e-05/0.2299, allocations: 78.83 kB / 443.3 MB, free: 8.676 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.549e-05/0.2299, allocations: 25.7 kB / 443.3 MB, free: 8.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.078e-05/0.23, allocations: 334.7 kB / 443.6 MB, free: 8.309 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.53e-05/0.23, allocations: 63.97 kB / 443.7 MB, free: 8.246 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.791e-05/0.2301, allocations: 56.78 kB / 443.8 MB, free: 8.191 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001532/0.2303, allocations: 256.3 kB / 444 MB, free: 7.926 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2303, allocations: 4 kB / 444 MB, free: 7.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000187/0.2305, allocations: 235 kB / 444.2 MB, free: 7.68 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.91e-05/0.2305, allocations: 61.67 kB / 444.3 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.2305, allocations: 0 / 444.3 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.2305, allocations: 3.984 kB / 444.3 MB, free: 7.609 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.2305, allocations: 0 / 444.3 MB, free: 7.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.106e-06/0.2305, allocations: 0 / 444.3 MB, free: 7.609 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.967e-05/0.2306, allocations: 19.84 kB / 444.3 MB, free: 7.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.2306, allocations: 7.938 kB / 444.3 MB, free: 7.582 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.382e-05/0.2307, allocations: 199.5 kB / 444.5 MB, free: 7.371 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.037e-05/0.2307, allocations: 19.75 kB / 444.6 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.168e-05/0.2308, allocations: 13.17 kB / 444.6 MB, free: 7.344 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2308, allocations: 0 / 444.6 MB, free: 7.344 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.2308, allocations: 0 / 444.6 MB, free: 7.344 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-06/0.2308, allocations: 0 / 444.6 MB, free: 7.344 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.036e-05/0.2309, allocations: 213.4 kB / 444.8 MB, free: 7.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.2309, allocations: 0 / 444.8 MB, free: 7.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.2309, allocations: 0 / 444.8 MB, free: 7.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2309, allocations: 4 kB / 444.8 MB, free: 7.082 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.2309, allocations: 4 kB / 444.8 MB, free: 7.078 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.2309, allocations: 0 / 444.8 MB, free: 7.078 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2309, allocations: 4 kB / 444.8 MB, free: 7.074 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004082/0.2313, allocations: 0.5139 MB / 445.3 MB, free: 6.535 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.593e-05/0.2314, allocations: 92.86 kB / 445.4 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.358e-05/0.2314, allocations: 11.98 kB / 445.4 MB, free: 6.414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.724e-05/0.2314, allocations: 4 kB / 445.4 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.027e-05/0.2315, allocations: 15.97 kB / 445.4 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.2315, allocations: 11.94 kB / 445.4 MB, free: 6.383 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.677e-05/0.2315, allocations: 115.1 kB / 445.5 MB, free: 6.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2315, allocations: 0 / 445.5 MB, free: 6.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006534/0.2322, allocations: 336 kB / 445.9 MB, free: 5.941 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.001249/0.2334, allocations: 1.319 MB / 447.2 MB, free: 4.586 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004516/0.2339, allocations: 0.7061 MB / 447.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2339, allocations: 0 / 447.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002901/0.2342, allocations: 0.5734 MB / 448.5 MB, free: 3.281 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001775/0.2344, allocations: 12 kB / 448.5 MB, free: 3.27 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001933/0.2363, allocations: 2.712 MB / 451.2 MB, free: 480 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001924/0.2365, allocations: 0.732 MB / 451.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.026e-05/0.2366, allocations: 0 / 451.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.12e-05/0.2366, allocations: 35.42 kB / 452 MB, free: 15.68 MB / 334.1 MB Notification: Performance of SimCode: time 1.734e-06/0.2366, allocations: 3.938 kB / 452 MB, free: 15.68 MB / 334.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].