Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 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.EqCircFromTransDat,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_EqCircFromTransDat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat,fileNamePrefix="PowerSystems_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.0009875/0.0009874, allocations: 85.38 kB / 16.31 MB, free: 5.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.001176/0.001176, allocations: 180.6 kB / 17.21 MB, free: 5.566 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.705/1.705, allocations: 205.4 MB / 223.4 MB, free: 5.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3438/0.3438, allocations: 38.05 MB / 309.7 MB, free: 8.918 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.0005271/0.0005272, allocations: 14.19 kB / 376.6 MB, free: 15.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1245, allocations: 56.34 MB / 433 MB, free: 6.586 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.002345/0.1269, allocations: 1.807 MB / 434.8 MB, free: 4.762 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002714/0.1297, allocations: 1.955 MB / 436.7 MB, free: 2.797 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.249e-05/0.1297, allocations: 0 / 436.7 MB, free: 2.797 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.1299, allocations: 11.92 kB / 436.7 MB, free: 2.785 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.13, allocations: 43.8 kB / 436.8 MB, free: 2.742 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001889/0.1319, allocations: 0.632 MB / 437.4 MB, free: 2.109 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002327/0.1321, allocations: 143.5 kB / 437.5 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.476e-05/0.1323, allocations: 11.97 kB / 437.6 MB, free: 1.957 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.1324, allocations: 39.78 kB / 437.6 MB, free: 1.918 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000158/0.1326, allocations: 59.81 kB / 437.7 MB, free: 1.859 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.958e-05/0.1326, allocations: 4 kB / 437.7 MB, free: 1.855 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001709/0.1343, allocations: 1.041 MB / 438.7 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.321e-05/0.1344, allocations: 35.84 kB / 438.7 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.891e-05/0.1344, allocations: 41.58 kB / 438.8 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009764/0.1354, allocations: 0.9047 MB / 439.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1354, allocations: 0 / 439.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1355, allocations: 4 kB / 439.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.1355, allocations: 0 / 439.7 MB, free: 15.82 MB / 382.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.0006285/0.1361, allocations: 0.5316 MB / 440.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.1362, allocations: 8.031 kB / 440.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.256e-05/0.1362, allocations: 62.28 kB / 440.3 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.114e-05/0.1363, allocations: 19.72 kB / 440.3 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002251/0.1365, allocations: 198.8 kB / 440.5 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.1365, allocations: 4 kB / 440.5 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.783e-05/0.1366, allocations: 8 kB / 440.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000243/0.1368, allocations: 134.2 kB / 440.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.1368, allocations: 0 / 440.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.1369, allocations: 0 / 440.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.1369, allocations: 0 / 440.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.137, allocations: 72.19 kB / 440.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004589/0.1375, allocations: 360.9 kB / 441.1 MB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001156/0.1376, allocations: 78.48 kB / 441.1 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.141e-05/0.1377, allocations: 60.8 kB / 441.2 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.886e-06/0.1377, allocations: 0 / 441.2 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.1377, allocations: 34.56 kB / 441.2 MB, free: 14.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 9.32e-07/0.1377, allocations: 0 / 441.2 MB, free: 14.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.000384/0.1381, allocations: 215.2 kB / 441.4 MB, free: 13.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/0.1382, allocations: 105 kB / 441.5 MB, free: 13.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.1383, allocations: 150.1 kB / 441.7 MB, free: 13.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.1383, allocations: 25.7 kB / 441.7 MB, free: 13.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.372e-05/0.1384, allocations: 115.9 kB / 441.8 MB, free: 13.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.181e-05/0.1385, allocations: 47.34 kB / 441.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-06/0.1385, allocations: 0 / 441.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.1386, allocations: 322.8 kB / 442.2 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.493e-05/0.1387, allocations: 39.97 kB / 442.2 MB, free: 13.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.988e-05/0.1388, allocations: 39.98 kB / 442.3 MB, free: 12.99 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.699e-05/0.1389, allocations: 85.66 kB / 442.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1389, allocations: 0 / 442.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002242/0.1391, allocations: 175.3 kB / 442.5 MB, free: 12.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.376e-05/0.1392, allocations: 49.67 kB / 442.6 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.1392, allocations: 4 kB / 442.6 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.1392, allocations: 0 / 442.6 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.106e-06/0.1392, allocations: 0 / 442.6 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.1392, allocations: 7.922 kB / 442.6 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.833e-05/0.1393, allocations: 11.89 kB / 442.6 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.36e-05/0.1393, allocations: 12 kB / 442.6 MB, free: 12.63 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001488/0.1395, allocations: 171.5 kB / 442.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.843e-05/0.1395, allocations: 23.78 kB / 442.8 MB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.734e-05/0.1395, allocations: 8.844 kB / 442.8 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.1395, allocations: 0 / 442.8 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.1396, allocations: 4 kB / 442.8 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1396, allocations: 0 / 442.8 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002119/0.1398, allocations: 213.5 kB / 443 MB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1398, allocations: 0 / 443 MB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1398, allocations: 4 kB / 443 MB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.1398, allocations: 0 / 443 MB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.1398, allocations: 7.984 kB / 443 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.1398, allocations: 0 / 443 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1398, allocations: 3.938 kB / 443 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003903/0.1402, allocations: 369.4 kB / 443.4 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.21e-05/0.1403, allocations: 85.02 kB / 443.5 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.617e-05/0.1403, allocations: 4 kB / 443.5 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.208e-05/0.1404, allocations: 19.86 kB / 443.5 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.229e-05/0.1404, allocations: 4 kB / 443.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.1404, allocations: 4 kB / 443.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.611e-05/0.1405, allocations: 111.2 kB / 443.6 MB, free: 11.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1405, allocations: 4 kB / 443.6 MB, free: 11.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008968/0.1415, allocations: 327.9 kB / 443.9 MB, free: 11.19 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001545/0.143, allocations: 1.26 MB / 445.2 MB, free: 9.895 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003718/0.1434, allocations: 335.2 kB / 445.5 MB, free: 9.555 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1434, allocations: 3.938 kB / 445.5 MB, free: 9.551 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002342/0.1436, allocations: 259.3 kB / 445.8 MB, free: 9.285 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00032/0.144, allocations: 24.14 kB / 445.8 MB, free: 9.262 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001741/0.1457, allocations: 1.269 MB / 447.1 MB, free: 7.941 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003701/0.1461, allocations: 0.7278 MB / 447.8 MB, free: 7.188 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.545e-05/0.1461, allocations: 0 / 447.8 MB, free: 7.188 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.811e-05/0.1462, allocations: 43.42 kB / 447.9 MB, free: 7.145 MB / 382.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1462, allocations: 0 / 447.9 MB, free: 7.145 MB / 382.1 MB [CodegenCFunctions.tpl:5416:13-5416:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].