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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.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.001011/0.001011, allocations: 105.5 kB / 16.92 MB, free: 5.766 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.001059/0.001059, allocations: 191.5 kB / 17.85 MB, free: 5.172 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.4/1.4, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1899/0.1899, allocations: 38.02 MB / 329.7 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002143/0.002143, allocations: 64.62 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1392, allocations: 58.06 MB / 457 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixTrDat2): time 0.004216/0.1434, allocations: 2.105 MB / 459.1 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003165/0.1466, allocations: 2.05 MB / 461.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.049e-05/0.1467, allocations: 4 kB / 461.1 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.1469, allocations: 11.86 kB / 461.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.147, allocations: 31.83 kB / 461.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00246/0.1495, allocations: 0.8383 MB / 462 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001583/0.1497, allocations: 75.7 kB / 462.1 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.129e-05/0.1497, allocations: 8.188 kB / 462.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.267e-05/0.1498, allocations: 35.83 kB / 462.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.13e-05/0.1499, allocations: 43.83 kB / 462.2 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.441e-05/0.1499, allocations: 0 / 462.2 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002031/0.152, allocations: 1.259 MB / 463.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.656e-05/0.152, allocations: 31.92 kB / 463.4 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.861e-05/0.1521, allocations: 43.61 kB / 463.5 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002078/0.1542, allocations: 1.341 MB / 464.8 MB, free: 68 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1542, allocations: 7.875 kB / 464.8 MB, free: 60 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1542, allocations: 0 / 464.8 MB, free: 60 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.1542, allocations: 0 / 464.8 MB, free: 60 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008892/0.1551, allocations: 0.5474 MB / 465.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.1552, allocations: 15.89 kB / 465.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.263e-05/0.1552, allocations: 42.75 kB / 465.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.145e-05/0.1553, allocations: 12.75 kB / 465.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.1555, allocations: 211.3 kB / 465.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.755e-06/0.1555, allocations: 0 / 465.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.896e-05/0.1555, allocations: 7.922 kB / 465.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001789/0.1557, allocations: 100.5 kB / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.353e-06/0.1557, allocations: 0 / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.1558, allocations: 0 / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1558, allocations: 0 / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.186e-05/0.1559, allocations: 67.83 kB / 465.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001718/0.156, allocations: 189.5 kB / 466 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001182/0.1562, allocations: 98.55 kB / 466.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.386e-05/0.1563, allocations: 96.8 kB / 466.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.198e-06/0.1563, allocations: 0 / 466.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.1563, allocations: 34.56 kB / 466.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.042e-06/0.1563, allocations: 0 / 466.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005288/0.1569, allocations: 319.5 kB / 466.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.171e-05/0.1569, allocations: 101.1 kB / 466.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.1571, allocations: 152.5 kB / 466.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.1571, allocations: 29.7 kB / 466.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.118e-05/0.1572, allocations: 96.58 kB / 466.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.821e-05/0.1572, allocations: 82.73 kB / 467 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.874e-05/0.1573, allocations: 29.7 kB / 467 MB, free: 13.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.1574, allocations: 334.8 kB / 467.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.368e-05/0.1575, allocations: 59.92 kB / 467.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.872e-05/0.1576, allocations: 63.97 kB / 467.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.1578, allocations: 255.6 kB / 467.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1578, allocations: 0 / 467.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002624/0.1581, allocations: 235 kB / 468 MB, free: 12.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.928e-05/0.1582, allocations: 65.66 kB / 468 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.1582, allocations: 0 / 468 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.1582, allocations: 0 / 468 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.1582, allocations: 0 / 468 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.1582, allocations: 0 / 468 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.355e-05/0.1583, allocations: 15.91 kB / 468 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.1583, allocations: 8 kB / 468 MB, free: 12.57 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.0001588/0.1585, allocations: 207.3 kB / 468.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.18e-05/0.1585, allocations: 15.81 kB / 468.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.731e-05/0.1585, allocations: 13.12 kB / 468.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.1585, allocations: 0 / 468.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1586, allocations: 0 / 468.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.1586, allocations: 0 / 468.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001615/0.1587, allocations: 213.4 kB / 468.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1588, allocations: 0 / 468.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.02e-07/0.1588, allocations: 4 kB / 468.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.1588, allocations: 0 / 468.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.1588, allocations: 4 kB / 468.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1588, allocations: 0 / 468.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1588, allocations: 0 / 468.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005725/0.1594, allocations: 0.5212 MB / 469 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.802e-05/0.1594, allocations: 92.86 kB / 469.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.1595, allocations: 4 kB / 469.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.708e-05/0.1595, allocations: 8.031 kB / 469.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.907e-05/0.1596, allocations: 4 kB / 469.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.1596, allocations: 4 kB / 469.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.976e-05/0.1597, allocations: 127.2 kB / 469.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1597, allocations: 0 / 469.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00101/0.1607, allocations: 328 kB / 469.6 MB, free: 10.95 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.002183/0.1629, allocations: 1.326 MB / 470.9 MB, free: 9.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000745/0.1636, allocations: 0.7139 MB / 471.6 MB, free: 8.863 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1637, allocations: 0 / 471.6 MB, free: 8.863 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004935/0.1642, allocations: 0.5773 MB / 472.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002243/0.1644, allocations: 8.156 kB / 472.2 MB, free: 8.266 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003157/0.1676, allocations: 2.645 MB / 474.8 MB, free: 5.535 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.1679, allocations: 0.7278 MB / 475.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.594e-05/0.1679, allocations: 7.969 kB / 475.6 MB, free: 4.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.553e-05/0.168, allocations: 31.44 kB / 475.6 MB, free: 4.742 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.168, allocations: 0 / 475.6 MB, free: 4.742 MB / 350.1 MB [CodegenCFunctions.tpl:5633:13-5633:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].