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.001232/0.001232, allocations: 105.1 kB / 16.92 MB, free: 5.754 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.001269/0.001269, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.293/1.293, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1703/0.1703, allocations: 38.02 MB / 329.7 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 65.86 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1059, allocations: 58.06 MB / 457 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.TransDatFromEqCirc): time 0.003845/0.1098, allocations: 2.148 MB / 459.1 MB, free: 5.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001565/0.1114, allocations: 1.06 MB / 460.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.823e-05/0.1115, allocations: 4 kB / 460.2 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.1117, allocations: 15.91 kB / 460.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001488/0.1119, allocations: 51.8 kB / 460.2 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009275/0.1128, allocations: 298.3 kB / 460.5 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001369/0.1129, allocations: 111.6 kB / 460.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.192e-05/0.113, allocations: 7.969 kB / 460.7 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.296e-05/0.1131, allocations: 51.83 kB / 460.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.1132, allocations: 63.73 kB / 460.8 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.436e-05/0.1132, allocations: 4 kB / 460.8 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005376/0.1138, allocations: 411.2 kB / 461.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.36e-05/0.1138, allocations: 39.83 kB / 461.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.779e-05/0.1139, allocations: 43.69 kB / 461.3 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000517/0.1144, allocations: 0.503 MB / 461.8 MB, free: 3.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1144, allocations: 4 kB / 461.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1144, allocations: 0 / 461.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.1144, allocations: 0 / 461.8 MB, free: 3.168 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.0004668/0.1149, allocations: 460.8 kB / 462.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.1149, allocations: 11.89 kB / 462.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.416e-05/0.115, allocations: 70.33 kB / 462.3 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.171e-05/0.1151, allocations: 16.84 kB / 462.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.1153, allocations: 206.4 kB / 462.5 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.1153, allocations: 8.375 kB / 462.5 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.1153, allocations: 11.94 kB / 462.5 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002112/0.1155, allocations: 133.6 kB / 462.7 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.1156, allocations: 0 / 462.7 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.1156, allocations: 4 kB / 462.7 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.1156, allocations: 0 / 462.7 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001135/0.1157, allocations: 83.94 kB / 462.7 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003749/0.1161, allocations: 360.3 kB / 463.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.1162, allocations: 130.5 kB / 463.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.878e-05/0.1163, allocations: 116.9 kB / 463.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-06/0.1163, allocations: 3.938 kB / 463.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.1164, allocations: 38.5 kB / 463.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.122e-06/0.1164, allocations: 4 kB / 463.4 MB, free: 1.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004197/0.1168, allocations: 295.2 kB / 463.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.337e-05/0.1169, allocations: 93.09 kB / 463.8 MB, free: 0.957 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.363e-05/0.117, allocations: 133.8 kB / 463.9 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.117, allocations: 25.7 kB / 463.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.598e-05/0.1171, allocations: 100.5 kB / 464 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.283e-05/0.1171, allocations: 70.94 kB / 464.1 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.581e-05/0.1172, allocations: 33.73 kB / 464.1 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.1173, allocations: 322.8 kB / 464.4 MB, free: 256 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.356e-05/0.1174, allocations: 55.97 kB / 464.5 MB, free: 200 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.3e-05/0.1174, allocations: 59.91 kB / 464.5 MB, free: 140 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002063/0.1176, allocations: 235.1 kB / 464.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1176, allocations: 0 / 464.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000233/0.1179, allocations: 215.1 kB / 465 MB, free: 15.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.047e-05/0.1179, allocations: 59.86 kB / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.118, allocations: 4.062 kB / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.118, allocations: 0 / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.82e-07/0.118, allocations: 0 / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/0.118, allocations: 0 / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.004e-05/0.118, allocations: 4 kB / 465.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.429e-05/0.1181, allocations: 19.92 kB / 465.1 MB, free: 15.58 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.0001279/0.1182, allocations: 179.5 kB / 465.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.997e-05/0.1182, allocations: 19.75 kB / 465.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.495e-05/0.1183, allocations: 17.09 kB / 465.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1183, allocations: 4 kB / 465.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1183, allocations: 4 kB / 465.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-06/0.1183, allocations: 0 / 465.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/0.1185, allocations: 213.4 kB / 465.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.1185, allocations: 0 / 465.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.542e-06/0.1185, allocations: 3.938 kB / 465.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.1185, allocations: 7.984 kB / 465.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.1185, allocations: 4 kB / 465.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1185, allocations: 0 / 465.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1185, allocations: 0 / 465.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004268/0.119, allocations: 449 kB / 466 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.282e-05/0.119, allocations: 96.8 kB / 466 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.119, allocations: 8 kB / 466.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.679e-05/0.1191, allocations: 11.92 kB / 466.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.114e-05/0.1191, allocations: 4 kB / 466.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.1192, allocations: 4 kB / 466.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.43e-05/0.1192, allocations: 103.3 kB / 466.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.694e-06/0.1192, allocations: 0 / 466.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004919/0.1197, allocations: 147.9 kB / 466.3 MB, free: 14.23 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.001248/0.121, allocations: 1.224 MB / 467.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005198/0.1215, allocations: 0.5657 MB / 468.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1215, allocations: 7.938 kB / 468.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000345/0.1219, allocations: 471.3 kB / 468.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.1222, allocations: 23.97 kB / 468.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.1246, allocations: 2.425 MB / 471 MB, free: 9.383 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/0.1248, allocations: 0.7312 MB / 471.8 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.048e-05/0.1249, allocations: 4 kB / 471.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.426e-05/0.1249, allocations: 35.42 kB / 471.8 MB, free: 8.586 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1249, allocations: 0 / 471.8 MB, free: 8.586 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].