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 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.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.0009878/0.0009878, allocations: 92.33 kB / 16.3 MB, free: 6.461 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.00111/0.00111, allocations: 186.2 kB / 17.19 MB, free: 6.34 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.686/1.686, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1719/0.1719, allocations: 38.04 MB / 309.7 MB, free: 6.141 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.0005112/0.0005112, allocations: 16 kB / 376.6 MB, free: 3.113 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3085, allocations: 56.33 MB / 432.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.002936/0.3115, allocations: 1.796 MB / 434.7 MB, free: 17 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001861/0.3134, allocations: 1.034 MB / 435.7 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.304e-05/0.3135, allocations: 4 kB / 435.7 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002392/0.3138, allocations: 15.91 kB / 435.8 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.593e-05/0.3138, allocations: 19.95 kB / 435.8 MB, free: 15.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008157/0.3147, allocations: 205.8 kB / 436 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001152/0.3148, allocations: 51.91 kB / 436 MB, free: 15.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.112e-05/0.3149, allocations: 4 kB / 436 MB, free: 15.67 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.315, allocations: 31.84 kB / 436.1 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001035/0.3151, allocations: 35.89 kB / 436.1 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.3151, allocations: 4 kB / 436.1 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004667/0.3156, allocations: 287.5 kB / 436.4 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.563e-05/0.3157, allocations: 39.89 kB / 436.4 MB, free: 15.28 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.332e-05/0.3157, allocations: 37.7 kB / 436.5 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000422/0.3162, allocations: 373.5 kB / 436.8 MB, free: 14.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.637e-06/0.3162, allocations: 7.938 kB / 436.8 MB, free: 14.87 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.3162, allocations: 3.938 kB / 436.8 MB, free: 14.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.3162, allocations: 0 / 436.8 MB, free: 14.86 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005571/0.3168, allocations: 452.6 kB / 437.3 MB, free: 14.37 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.303e-05/0.3169, allocations: 12.03 kB / 437.3 MB, free: 14.36 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.825e-05/0.317, allocations: 54.36 kB / 437.3 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.255e-05/0.317, allocations: 15.77 kB / 437.4 MB, free: 14.28 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002242/0.3173, allocations: 206.8 kB / 437.6 MB, free: 14.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.3173, allocations: 4 kB / 437.6 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.474e-05/0.3173, allocations: 4 kB / 437.6 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002506/0.3176, allocations: 133.6 kB / 437.7 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.3176, allocations: 0 / 437.7 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.3176, allocations: 4 kB / 437.7 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.3176, allocations: 0 / 437.7 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000113/0.3177, allocations: 87.94 kB / 437.8 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004467/0.3182, allocations: 356.4 kB / 438.1 MB, free: 13.4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001296/0.3183, allocations: 134.5 kB / 438.3 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.412e-06/0.3183, allocations: 0 / 438.3 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.3184, allocations: 30.56 kB / 438.3 MB, free: 13.22 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 3.206e-06/0.3184, allocations: 4 kB / 438.3 MB, free: 13.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004803/0.3189, allocations: 385.3 kB / 438.7 MB, free: 12.81 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.3189, allocations: 93.09 kB / 438.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.173e-05/0.319, allocations: 137.1 kB / 438.9 MB, free: 12.56 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.319, allocations: 25.7 kB / 438.9 MB, free: 12.53 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.266e-05/0.3191, allocations: 112.3 kB / 439 MB, free: 12.42 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.899e-05/0.3191, allocations: 63.03 kB / 439.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-06/0.3192, allocations: 4 kB / 439.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.06e-05/0.3192, allocations: 326.8 kB / 439.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.124e-05/0.3193, allocations: 60 kB / 439.5 MB, free: 11.96 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.686e-05/0.3194, allocations: 59.91 kB / 439.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.291e-05/0.3195, allocations: 109.7 kB / 439.6 MB, free: 11.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.3195, allocations: 0 / 439.6 MB, free: 11.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002042/0.3197, allocations: 219.1 kB / 439.9 MB, free: 11.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.925e-05/0.3197, allocations: 57.67 kB / 439.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.3197, allocations: 0 / 439.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.3198, allocations: 0 / 439.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.973e-06/0.3198, allocations: 3.984 kB / 439.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.3198, allocations: 3.953 kB / 439.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.464e-05/0.3198, allocations: 15.91 kB / 439.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.465e-05/0.3199, allocations: 8 kB / 439.9 MB, free: 11.47 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001116/0.32, allocations: 179.5 kB / 440.1 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.044e-05/0.32, allocations: 15.89 kB / 440.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.438e-05/0.3201, allocations: 13.19 kB / 440.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3201, allocations: 0 / 440.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.3201, allocations: 3.938 kB / 440.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3201, allocations: 3.953 kB / 440.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001655/0.3202, allocations: 209.4 kB / 440.4 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.3203, allocations: 8 kB / 440.4 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3203, allocations: 0 / 440.4 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.3203, allocations: 3.984 kB / 440.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.3203, allocations: 4 kB / 440.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.3203, allocations: 0 / 440.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3203, allocations: 0 / 440.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003439/0.3206, allocations: 448.9 kB / 440.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.22e-05/0.3207, allocations: 96.86 kB / 440.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.421e-05/0.3207, allocations: 8.031 kB / 440.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.341e-05/0.3208, allocations: 7.938 kB / 440.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.431e-05/0.3208, allocations: 8 kB / 440.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.3208, allocations: 4 kB / 440.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.762e-05/0.3209, allocations: 103.2 kB / 441 MB, free: 10.28 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3209, allocations: 0 / 441 MB, free: 10.28 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004324/0.3213, allocations: 131.9 kB / 441.2 MB, free: 10.15 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 (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.001057/0.3224, allocations: 1.233 MB / 442.4 MB, free: 8.879 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004567/0.3229, allocations: 0.5694 MB / 443 MB, free: 8.297 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3229, allocations: 0 / 443 MB, free: 8.297 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002993/0.3232, allocations: 475.3 kB / 443.4 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000236/0.3234, allocations: 16.09 kB / 443.5 MB, free: 7.805 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.3249, allocations: 1.315 MB / 444.8 MB, free: 6.445 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001751/0.3251, allocations: 0.7316 MB / 445.5 MB, free: 5.688 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.746e-05/0.3251, allocations: 4 kB / 445.5 MB, free: 5.684 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.472e-05/0.3251, allocations: 31.42 kB / 445.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3251, allocations: 4 kB / 445.5 MB, free: 5.648 MB / 318.1 MB [CodegenCFunctions.tpl:5389:13-5389:13:writable] Error: Template error: This should have been handled in indexed assign and should not have gotten here. eigenvalues[:,2].