Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_AC3ph_Precalculation_TransDatFromEqCirc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc,fileNamePrefix="PowerSystems_latest_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.001191/0.001191, allocations: 109.7 kB / 16.51 MB, free: 6.707 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.001127/0.001127, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.217/1.217, allocations: 222.9 MB / 241.1 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1592/0.1592, allocations: 38.04 MB / 329.3 MB, free: 9.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001079/0.001079, allocations: 58.94 kB / 398.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08465/0.08574, allocations: 58.06 MB / 456.2 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.0031/0.08887, allocations: 2.197 MB / 458.4 MB, free: 6.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001386/0.09027, allocations: 1.096 MB / 459.5 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.906e-05/0.09032, allocations: 0 / 459.5 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001241/0.09046, allocations: 11.86 kB / 459.6 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.09058, allocations: 59.78 kB / 459.6 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000647/0.09124, allocations: 251.5 kB / 459.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002172/0.09146, allocations: 263.4 kB / 460.1 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.171e-05/0.09151, allocations: 4 kB / 460.1 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.181e-05/0.0916, allocations: 43.78 kB / 460.2 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.09172, allocations: 83.7 kB / 460.2 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.157e-05/0.09173, allocations: 0 / 460.2 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006114/0.09235, allocations: 403.2 kB / 460.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.619e-05/0.09242, allocations: 39.89 kB / 460.7 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.195e-05/0.09247, allocations: 39.73 kB / 460.7 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005556/0.09304, allocations: 0.5224 MB / 461.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.09305, allocations: 0 / 461.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.09305, allocations: 0 / 461.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.09306, allocations: 4 kB / 461.2 MB, free: 3.387 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.0004959/0.09356, allocations: 456.8 kB / 461.7 MB, free: 2.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.09361, allocations: 8.031 kB / 461.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.552e-05/0.09369, allocations: 70.38 kB / 461.8 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.831e-05/0.09374, allocations: 12.84 kB / 461.8 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001968/0.09394, allocations: 196 kB / 462 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.09396, allocations: 12.38 kB / 462 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.254e-05/0.09399, allocations: 11.94 kB / 462 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.09431, allocations: 133.6 kB / 462.1 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.09433, allocations: 3.938 kB / 462.1 MB, free: 2.395 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.09434, allocations: 0 / 462.1 MB, free: 2.395 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-06/0.09436, allocations: 4 kB / 462.1 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001125/0.09447, allocations: 83.95 kB / 462.2 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004187/0.0949, allocations: 352.4 kB / 462.6 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001682/0.09508, allocations: 134.5 kB / 462.7 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.09519, allocations: 116.9 kB / 462.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.74e-06/0.0952, allocations: 0 / 462.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.09523, allocations: 34.5 kB / 462.8 MB, free: 1.613 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 2.385e-06/0.09524, allocations: 4 kB / 462.8 MB, free: 1.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004472/0.09569, allocations: 301.9 kB / 463.1 MB, free: 1.305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.09575, allocations: 93.09 kB / 463.2 MB, free: 1.195 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.802e-05/0.09585, allocations: 136.2 kB / 463.4 MB, free: 1.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.09587, allocations: 29.64 kB / 463.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.073e-05/0.09593, allocations: 100.5 kB / 463.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.423e-05/0.09599, allocations: 74.92 kB / 463.6 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.131e-05/0.09604, allocations: 33.7 kB / 463.6 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.09614, allocations: 326.9 kB / 463.9 MB, free: 488 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.778e-05/0.09622, allocations: 55.97 kB / 464 MB, free: 432 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.878e-05/0.09629, allocations: 55.97 kB / 464 MB, free: 376 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001989/0.0965, allocations: 231.4 kB / 464.2 MB, free: 132 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.0965, allocations: 3.938 kB / 464.2 MB, free: 128 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002621/0.09677, allocations: 219.1 kB / 464.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.977e-05/0.09683, allocations: 57.66 kB / 464.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.09684, allocations: 4 kB / 464.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.09686, allocations: 3.984 kB / 464.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.09686, allocations: 0 / 464.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.09687, allocations: 4.062 kB / 464.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.713e-05/0.09692, allocations: 4 kB / 464.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.524e-05/0.09695, allocations: 12 kB / 464.5 MB, free: 15.81 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.0001282/0.09709, allocations: 179.5 kB / 464.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.939e-05/0.09713, allocations: 23.75 kB / 464.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.629e-05/0.09715, allocations: 9.188 kB / 464.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.09716, allocations: 0 / 464.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.09717, allocations: 0 / 464.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.09717, allocations: 4 kB / 464.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001871/0.09737, allocations: 221.4 kB / 465 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.09737, allocations: 0 / 465 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.944e-06/0.09738, allocations: 3.938 kB / 465 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.09739, allocations: 0 / 465 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.09741, allocations: 8 kB / 465 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.09741, allocations: 3.938 kB / 465 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.09742, allocations: 0 / 465 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005196/0.09794, allocations: 449 kB / 465.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.463e-05/0.09801, allocations: 100.8 kB / 465.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.09803, allocations: 4 kB / 465.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.418e-05/0.0981, allocations: 4 kB / 465.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.885e-05/0.09813, allocations: 4 kB / 465.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.09814, allocations: 4 kB / 465.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.134e-05/0.09821, allocations: 107.2 kB / 465.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09821, allocations: 0 / 465.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004406/0.09866, allocations: 135.9 kB / 465.8 MB, free: 14.47 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.001185/0.09985, allocations: 1.249 MB / 467 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005686/0.1004, allocations: 0.5617 MB / 467.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1004, allocations: 0 / 467.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003823/0.1008, allocations: 467.3 kB / 468 MB, free: 12.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/0.1011, allocations: 26.2 kB / 468.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.1035, allocations: 2.462 MB / 470.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.1038, allocations: 0.7357 MB / 471.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.772e-05/0.1038, allocations: 8 kB / 471.3 MB, free: 8.805 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.678e-05/0.1039, allocations: 35.42 kB / 471.3 MB, free: 8.773 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1039, allocations: 0 / 471.3 MB, free: 8.773 MB / 350.1 MB [CodegenCFunctions.tpl:5622:13-5622:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].