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 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.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.001161/0.001161, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.001272/0.001272, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.405/1.405, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1906/0.1906, allocations: 38.04 MB / 329.7 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 64.08 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1108, allocations: 58.07 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003217/0.1141, allocations: 2.156 MB / 459.1 MB, free: 5.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.1156, allocations: 1.056 MB / 460.2 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.625e-05/0.1157, allocations: 4 kB / 460.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001323/0.1158, allocations: 7.922 kB / 460.2 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.1159, allocations: 59.77 kB / 460.3 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008744/0.1168, allocations: 287.2 kB / 460.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001542/0.117, allocations: 123.6 kB / 460.7 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.605e-05/0.117, allocations: 4 kB / 460.7 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.072e-05/0.1171, allocations: 51.81 kB / 460.7 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001048/0.1173, allocations: 63.73 kB / 460.8 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.1173, allocations: 4 kB / 460.8 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006002/0.1179, allocations: 411.1 kB / 461.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.099e-05/0.118, allocations: 35.89 kB / 461.2 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.374e-05/0.118, allocations: 35.69 kB / 461.2 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006031/0.1186, allocations: 0.5225 MB / 461.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.1186, allocations: 0 / 461.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.1186, allocations: 0 / 461.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.1187, allocations: 0 / 461.8 MB, free: 3.125 MB / 334.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.0004933/0.1192, allocations: 456.8 kB / 462.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.1192, allocations: 11.89 kB / 462.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.683e-05/0.1193, allocations: 70.33 kB / 462.3 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.37e-05/0.1193, allocations: 16.83 kB / 462.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.1195, allocations: 196.1 kB / 462.5 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.1196, allocations: 8.375 kB / 462.5 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.717e-05/0.1196, allocations: 15.88 kB / 462.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002047/0.1198, allocations: 129.6 kB / 462.7 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.1198, allocations: 0 / 462.7 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.1198, allocations: 8 kB / 462.7 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1198, allocations: 0 / 462.7 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000122/0.12, allocations: 79.95 kB / 462.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003907/0.1204, allocations: 360.3 kB / 463.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001336/0.1205, allocations: 134.5 kB / 463.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.1206, allocations: 120.8 kB / 463.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.693e-06/0.1206, allocations: 3.984 kB / 463.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.1207, allocations: 38.5 kB / 463.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.122e-06/0.1207, allocations: 4 kB / 463.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004607/0.1211, allocations: 291.2 kB / 463.7 MB, free: 1.031 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.939e-05/0.1212, allocations: 93.09 kB / 463.8 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.1213, allocations: 132 kB / 463.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.1213, allocations: 25.7 kB / 463.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.328e-05/0.1214, allocations: 108.5 kB / 464 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.811e-05/0.1215, allocations: 70.92 kB / 464.1 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.296e-05/0.1215, allocations: 21.72 kB / 464.1 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.1216, allocations: 334.8 kB / 464.4 MB, free: 216 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.278e-05/0.1217, allocations: 55.91 kB / 464.5 MB, free: 160 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.259e-05/0.1218, allocations: 59.97 kB / 464.5 MB, free: 100 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002367/0.122, allocations: 226.9 kB / 464.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.122, allocations: 0 / 464.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002638/0.1223, allocations: 219.1 kB / 465 MB, free: 15.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.433e-05/0.1224, allocations: 61.66 kB / 465 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1224, allocations: 0 / 465 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.1224, allocations: 0 / 465 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.282e-06/0.1224, allocations: 0 / 465 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.1224, allocations: 4.062 kB / 465 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.521e-05/0.1225, allocations: 4 kB / 465.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.561e-05/0.1225, allocations: 11.94 kB / 465.1 MB, free: 15.55 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.0001592/0.1227, allocations: 187.4 kB / 465.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.038e-05/0.1227, allocations: 19.75 kB / 465.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.902e-05/0.1228, allocations: 13.19 kB / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.1228, allocations: 0 / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1228, allocations: 0 / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1228, allocations: 0 / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002315/0.123, allocations: 217.4 kB / 465.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.123, allocations: 4 kB / 465.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.795e-06/0.123, allocations: 3.938 kB / 465.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.123, allocations: 4 kB / 465.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.1231, allocations: 8 kB / 465.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.1231, allocations: 0 / 465.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1231, allocations: 0 / 465.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004826/0.1236, allocations: 451.2 kB / 466 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.194e-05/0.1236, allocations: 96.83 kB / 466 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.538e-05/0.1237, allocations: 4 kB / 466.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.608e-05/0.1237, allocations: 7.938 kB / 466.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.326e-05/0.1238, allocations: 8 kB / 466.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.1238, allocations: 4 kB / 466.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.613e-05/0.1239, allocations: 113.5 kB / 466.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1239, allocations: 0 / 466.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004465/0.1243, allocations: 135.9 kB / 466.3 MB, free: 14.2 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.001173/0.1255, allocations: 1.232 MB / 467.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005435/0.1261, allocations: 0.5658 MB / 468.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1261, allocations: 3.938 kB / 468.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003682/0.1265, allocations: 467.2 kB / 468.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.1268, allocations: 30.7 kB / 468.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002464/0.1292, allocations: 2.42 MB / 471 MB, free: 9.352 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003163/0.1296, allocations: 0.7312 MB / 471.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.929e-05/0.1296, allocations: 4 kB / 471.8 MB, free: 8.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.453e-05/0.1296, allocations: 31.42 kB / 471.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1296, allocations: 0 / 471.8 MB, free: 8.559 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].