Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.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_matrixEqCirc1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc1",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.001213/0.001213, allocations: 108.2 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.001845/0.001845, 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.448/1.448, 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.238/0.238, allocations: 38.04 MB / 329.7 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001611/0.001612, allocations: 65.75 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1213, allocations: 58.07 MB / 457 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1): time 0.004358/0.1257, allocations: 2.035 MB / 459 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009593/0.1267, allocations: 0.526 MB / 459.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.61e-05/0.1268, allocations: 0 / 459.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001764/0.1269, allocations: 15.92 kB / 459.5 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001668/0.1271, allocations: 15.91 kB / 459.6 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003883/0.1275, allocations: 71.78 kB / 459.6 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001461/0.1277, allocations: 63.75 kB / 459.7 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.1e-05/0.1278, allocations: 4 kB / 459.7 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.626e-05/0.1279, allocations: 31.84 kB / 459.7 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.265e-05/0.1279, allocations: 27.91 kB / 459.7 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.164e-05/0.1279, allocations: 3.938 kB / 459.8 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001849/0.1281, allocations: 71.91 kB / 459.8 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.31e-05/0.1282, allocations: 19.92 kB / 459.8 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.385e-05/0.1283, allocations: 23.81 kB / 459.9 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002231/0.1285, allocations: 107.9 kB / 460 MB, free: 4.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1285, allocations: 8 kB / 460 MB, free: 4.902 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1285, allocations: 3.938 kB / 460 MB, free: 4.898 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.1285, 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004678/0.129, allocations: 389 kB / 460.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.1291, allocations: 15.89 kB / 460.4 MB, free: 4.449 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.719e-05/0.1291, allocations: 38.73 kB / 460.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.314e-05/0.1292, allocations: 8.844 kB / 460.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002247/0.1294, allocations: 180.2 kB / 460.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.1294, allocations: 384 / 460.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.106e-05/0.1295, allocations: 7.938 kB / 460.6 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001476/0.1296, allocations: 65.56 kB / 460.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.1296, allocations: 0 / 460.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.256e-06/0.1296, allocations: 0 / 460.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.1296, allocations: 0 / 460.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.012e-05/0.1297, allocations: 31.98 kB / 460.7 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001744/0.1299, allocations: 177.5 kB / 460.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.736e-05/0.13, allocations: 58.5 kB / 460.9 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.601e-05/0.1301, allocations: 52.81 kB / 461 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.666e-06/0.1301, allocations: 0 / 461 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.1301, allocations: 30.56 kB / 461 MB, free: 3.688 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.593e-06/0.1301, allocations: 0 / 461 MB, free: 3.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003048/0.1304, allocations: 171.4 kB / 461.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.1305, allocations: 89.31 kB / 461.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.1306, allocations: 121.8 kB / 461.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.1307, allocations: 29.7 kB / 461.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.283e-05/0.1307, allocations: 92.16 kB / 461.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.195e-05/0.1308, allocations: 43.34 kB / 461.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.766e-05/0.1308, allocations: 21.72 kB / 461.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.131, allocations: 318.8 kB / 461.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.879e-05/0.131, allocations: 35.92 kB / 461.9 MB, free: 2.719 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.91e-05/0.1311, allocations: 27.98 kB / 461.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001629/0.1313, allocations: 153.1 kB / 462.1 MB, free: 2.527 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1313, allocations: 0 / 462.1 MB, free: 2.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001888/0.1315, allocations: 155.2 kB / 462.2 MB, free: 2.363 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.859e-05/0.1315, allocations: 45.69 kB / 462.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.1316, allocations: 3.938 kB / 462.3 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.1316, allocations: 4 kB / 462.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.1316, allocations: 0 / 462.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.1316, allocations: 0 / 462.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.072e-05/0.1316, allocations: 7.984 kB / 462.3 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.1317, allocations: 0 / 462.3 MB, free: 2.297 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.0001567/0.1318, allocations: 171.4 kB / 462.5 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.282e-05/0.1318, allocations: 15.94 kB / 462.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.74e-05/0.1319, allocations: 8.312 kB / 462.5 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.1319, allocations: 0 / 462.5 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1319, allocations: 0 / 462.5 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.1319, allocations: 3.984 kB / 462.5 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001632/0.1321, allocations: 185.4 kB / 462.7 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1321, allocations: 0 / 462.7 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.1321, allocations: 0 / 462.7 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.1321, allocations: 4 kB / 462.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.1321, allocations: 0 / 462.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1321, allocations: 0 / 462.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.1321, allocations: 8 kB / 462.7 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003335/0.1325, allocations: 278.6 kB / 463 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.613e-05/0.1325, allocations: 81.02 kB / 463 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.1326, allocations: 4 kB / 463 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.842e-05/0.1326, allocations: 3.938 kB / 463.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.445e-05/0.1326, allocations: 4 kB / 463.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/0.1326, allocations: 0 / 463.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.821e-05/0.1327, allocations: 111.2 kB / 463.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1327, allocations: 0 / 463.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002305/0.1329, allocations: 28 kB / 463.2 MB, free: 1.297 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.0006925/0.1336, allocations: 0.8209 MB / 464 MB, free: 452 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003234/0.134, allocations: 287.3 kB / 464.3 MB, free: 152 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.134, allocations: 8.094 kB / 464.3 MB, free: 144 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.1342, allocations: 227.3 kB / 464.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.1345, allocations: 19.08 kB / 464.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001877/0.1364, allocations: 1.749 MB / 466.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.1367, allocations: 0.7041 MB / 467 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.325e-05/0.1367, allocations: 3.859 kB / 467 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.199e-05/0.1368, allocations: 15.44 kB / 467 MB, free: 13.3 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1368, allocations: 0 / 467 MB, free: 13.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02112/0.1579, allocations: 2.529 MB / 469.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.416/7.573, allocations: 10.97 kB / 469.6 MB, free: 10.85 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1_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_matrixEqCirc1.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc1.pipe 2>&1)