Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.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.Z_matrixEqCirc0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc0",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.001194/0.001194, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.001102/0.001102, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.433/1.433, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1855/0.1855, allocations: 38.03 MB / 329.7 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 62.11 kB / 398.9 MB, free: 33.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1214, allocations: 58.07 MB / 457 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0): time 0.003364/0.1248, allocations: 2.043 MB / 459 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007427/0.1256, allocations: 0.5221 MB / 459.5 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.257e-05/0.1256, allocations: 4 kB / 459.5 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001591/0.1258, allocations: 7.922 kB / 459.5 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.352e-05/0.1259, allocations: 35.83 kB / 459.6 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002754/0.1262, allocations: 59.84 kB / 459.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001268/0.1263, allocations: 63.7 kB / 459.7 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.997e-05/0.1264, allocations: 4 kB / 459.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.505e-05/0.1265, allocations: 31.91 kB / 459.7 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.476e-05/0.1265, allocations: 31.84 kB / 459.8 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.088e-05/0.1265, allocations: 4 kB / 459.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000215/0.1268, allocations: 75.83 kB / 459.8 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.845e-05/0.1268, allocations: 19.92 kB / 459.9 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.263e-05/0.1269, allocations: 19.86 kB / 459.9 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001775/0.1271, allocations: 91.98 kB / 460 MB, free: 4.898 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.1271, allocations: 0 / 460 MB, free: 4.898 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1271, allocations: 0 / 460 MB, free: 4.898 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1271, allocations: 0 / 460 MB, free: 4.898 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004026/0.1275, allocations: 385 kB / 460.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.1275, allocations: 19.89 kB / 460.4 MB, free: 4.449 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.578e-05/0.1276, allocations: 30.75 kB / 460.4 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.885e-05/0.1276, allocations: 4.938 kB / 460.4 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001696/0.1278, allocations: 180.2 kB / 460.6 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.611e-06/0.1278, allocations: 384 / 460.6 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.439e-05/0.1278, allocations: 7.938 kB / 460.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001202/0.1279, allocations: 53.67 kB / 460.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.128, allocations: 0 / 460.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.065e-06/0.128, allocations: 0 / 460.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.128, allocations: 0 / 460.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.677e-05/0.128, allocations: 24 kB / 460.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001523/0.1282, allocations: 165.6 kB / 460.8 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.198e-05/0.1282, allocations: 46.45 kB / 460.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.267e-05/0.1283, allocations: 32.88 kB / 460.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.309e-06/0.1283, allocations: 0 / 460.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.976e-05/0.1283, allocations: 34.5 kB / 460.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 8.01e-07/0.1283, allocations: 4 kB / 460.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002298/0.1286, allocations: 147.3 kB / 461.1 MB, free: 3.598 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.1286, allocations: 85.09 kB / 461.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.171e-05/0.1287, allocations: 117.7 kB / 461.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.1288, allocations: 29.7 kB / 461.3 MB, free: 3.336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.721e-05/0.1288, allocations: 84.14 kB / 461.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.054e-05/0.1288, allocations: 31.55 kB / 461.4 MB, free: 3.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.68e-05/0.1289, allocations: 13.72 kB / 461.4 MB, free: 3.199 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.129, allocations: 322.8 kB / 461.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.221e-05/0.1291, allocations: 24.03 kB / 461.8 MB, free: 2.852 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.472e-05/0.1291, allocations: 15.98 kB / 461.8 MB, free: 2.836 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001186/0.1292, allocations: 128.7 kB / 461.9 MB, free: 2.695 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.1292, allocations: 3.938 kB / 461.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001446/0.1294, allocations: 123.4 kB / 462 MB, free: 2.559 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.087e-05/0.1294, allocations: 45.62 kB / 462.1 MB, free: 2.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.1294, allocations: 4 kB / 462.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.1295, allocations: 0 / 462.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.1295, allocations: 0 / 462.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.1295, allocations: 64 / 462.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.233e-05/0.1295, allocations: 7.906 kB / 462.1 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.532e-05/0.1295, allocations: 4 kB / 462.1 MB, free: 2.492 MB / 334.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.000118/0.1296, allocations: 159.5 kB / 462.3 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.345e-05/0.1297, allocations: 4 kB / 462.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.383e-05/0.1297, allocations: 8.375 kB / 462.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.1297, allocations: 0 / 462.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.1297, allocations: 0 / 462.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.1297, allocations: 3.984 kB / 462.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001195/0.1298, allocations: 169.5 kB / 462.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1298, allocations: 12 kB / 462.5 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1298, allocations: 0 / 462.5 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1298, allocations: 3.984 kB / 462.5 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.1299, allocations: 384 / 462.5 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.1299, allocations: 4 kB / 462.5 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1299, allocations: 0 / 462.5 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002376/0.1301, allocations: 218.5 kB / 462.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.935e-05/0.1302, allocations: 84.98 kB / 462.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.1302, allocations: 8.031 kB / 462.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.633e-05/0.1302, allocations: 0 / 462.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.869e-05/0.1302, allocations: 7.922 kB / 462.8 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.1303, allocations: 8 kB / 462.8 MB, free: 1.703 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.297e-05/0.1303, allocations: 83.28 kB / 462.9 MB, free: 1.621 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1303, allocations: 0 / 462.9 MB, free: 1.621 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002127/0.1305, allocations: 31.98 kB / 462.9 MB, free: 1.59 MB / 334.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.0005591/0.1311, allocations: 0.7585 MB / 463.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002342/0.1313, allocations: 199.3 kB / 463.8 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1313, allocations: 0 / 463.8 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.1315, allocations: 147.4 kB / 464 MB, free: 444 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/0.1317, allocations: 8 kB / 464 MB, free: 436 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/0.1332, allocations: 1.531 MB / 465.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004297/0.1337, allocations: 0.6924 MB / 466.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.455e-05/0.1337, allocations: 3.984 kB / 466.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.862e-05/0.1337, allocations: 11.44 kB / 466.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of SimCode: time 1.874e-06/0.1338, allocations: 4 kB / 466.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01938/0.1531, allocations: 2.146 MB / 468.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.524/7.677, allocations: 3.938 kB / 468.4 MB, free: 12 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc0.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc0.pipe 2>&1)