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 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.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.001109/0.001109, allocations: 107.3 kB / 16.92 MB, free: 6.117 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.001123/0.001123, allocations: 191.3 kB / 17.85 MB, free: 5.277 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.321/1.321, allocations: 222.9 MB / 241.5 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1697/0.1697, allocations: 38.02 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 59.06 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1067, allocations: 58.07 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.EqCircFromTransDat): time 0.004386/0.1112, allocations: 2.137 MB / 459.1 MB, free: 5.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003293/0.1145, allocations: 2.046 MB / 461.1 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.841e-05/0.1146, allocations: 0 / 461.1 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.1148, allocations: 19.91 kB / 461.2 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.115, allocations: 39.77 kB / 461.2 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002397/0.1174, allocations: 0.8266 MB / 462 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001767/0.1175, allocations: 91.64 kB / 462.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.742e-05/0.1176, allocations: 7.984 kB / 462.1 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.1177, allocations: 47.77 kB / 462.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.1179, allocations: 51.81 kB / 462.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.92e-05/0.1179, allocations: 4 kB / 462.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001833/0.1197, allocations: 1.236 MB / 463.5 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.585e-05/0.1198, allocations: 27.91 kB / 463.5 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.401e-05/0.1198, allocations: 39.73 kB / 463.5 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001688/0.1215, allocations: 1.325 MB / 464.9 MB, free: 16 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1216, allocations: 0 / 464.9 MB, free: 16 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1216, allocations: 0 / 464.9 MB, free: 16 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.1216, allocations: 0 / 464.9 MB, free: 16 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007707/0.1223, allocations: 0.5426 MB / 465.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.1224, allocations: 15.89 kB / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.072e-05/0.1225, allocations: 62.44 kB / 465.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.498e-05/0.1225, allocations: 12.75 kB / 465.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001909/0.1227, allocations: 220 kB / 465.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.1228, allocations: 3.938 kB / 465.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.722e-05/0.1228, allocations: 12 kB / 465.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002025/0.123, allocations: 122.2 kB / 465.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.123, allocations: 0 / 465.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.123, allocations: 4 kB / 465.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.123, allocations: 4 kB / 465.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001/0.1231, allocations: 68.19 kB / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004248/0.1236, allocations: 364.9 kB / 466.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001081/0.1237, allocations: 78.48 kB / 466.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.326e-05/0.1238, allocations: 60.86 kB / 466.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.999e-06/0.1238, allocations: 0 / 466.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.1238, allocations: 30.56 kB / 466.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 9.92e-07/0.1238, allocations: 4 kB / 466.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003648/0.1242, allocations: 227.2 kB / 466.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.1243, allocations: 89.11 kB / 466.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.1244, allocations: 153 kB / 466.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.1244, allocations: 29.73 kB / 466.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.521e-05/0.1245, allocations: 116 kB / 467 MB, free: 13.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.964e-05/0.1245, allocations: 51.2 kB / 467.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.173e-05/0.1246, allocations: 21.72 kB / 467.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.1247, allocations: 322.8 kB / 467.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.9e-05/0.1247, allocations: 39.97 kB / 467.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.756e-05/0.1248, allocations: 39.97 kB / 467.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.125, allocations: 178.6 kB / 467.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.125, allocations: 4.031 kB / 467.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002095/0.1252, allocations: 179.1 kB / 467.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.493e-05/0.1253, allocations: 53.67 kB / 467.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.1253, allocations: 0 / 467.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.1253, allocations: 0 / 467.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.1253, allocations: 0 / 467.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.1253, allocations: 0 / 467.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.81e-05/0.1254, allocations: 7.906 kB / 467.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.1254, allocations: 4 kB / 467.9 MB, free: 12.68 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.0001332/0.1255, allocations: 183.4 kB / 468.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.698e-05/0.1256, allocations: 11.91 kB / 468.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.545e-05/0.1256, allocations: 12.83 kB / 468.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1256, allocations: 0 / 468.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1256, allocations: 0 / 468.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-06/0.1256, allocations: 0 / 468.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.1258, allocations: 217.4 kB / 468.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.1258, allocations: 0 / 468.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1258, allocations: 0 / 468.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.1259, allocations: 0 / 468.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.1259, allocations: 4 kB / 468.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1259, allocations: 7.938 kB / 468.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1259, allocations: 4 kB / 468.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003658/0.1263, allocations: 373.4 kB / 468.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.248e-05/0.1263, allocations: 92.86 kB / 468.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.236e-05/0.1263, allocations: 4 kB / 468.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.993e-05/0.1264, allocations: 4 kB / 468.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.197e-05/0.1265, allocations: 4 kB / 468.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.1265, allocations: 12.02 kB / 468.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.304e-05/0.1266, allocations: 117.7 kB / 468.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1266, allocations: 0 / 468.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009057/0.1275, allocations: 331.9 kB / 469.3 MB, free: 11.22 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.001625/0.1291, allocations: 1.285 MB / 470.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003863/0.1295, allocations: 335.2 kB / 470.9 MB, free: 9.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1295, allocations: 0 / 470.9 MB, free: 9.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002165/0.1297, allocations: 259.3 kB / 471.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000344/0.1301, allocations: 11.98 kB / 471.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.1324, allocations: 2.302 MB / 473.5 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/0.1328, allocations: 0.7275 MB / 474.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.175e-05/0.1328, allocations: 7.984 kB / 474.2 MB, free: 6.148 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.249e-05/0.1328, allocations: 31.44 kB / 474.2 MB, free: 6.117 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1328, allocations: 0 / 474.2 MB, free: 6.117 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].