Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_matrixEqCirc2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2",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.00117/0.00117, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001312/0.001312, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.387/1.387, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1768/0.1768, allocations: 38.03 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 63.56 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1233, allocations: 58.07 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2): time 0.003511/0.1269, allocations: 2.035 MB / 459 MB, free: 5.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007837/0.1277, allocations: 0.526 MB / 459.5 MB, free: 5.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.271e-05/0.1277, allocations: 3.938 kB / 459.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.1278, allocations: 15.92 kB / 459.6 MB, free: 5.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.988e-05/0.1279, allocations: 15.91 kB / 459.6 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003076/0.1283, allocations: 71.77 kB / 459.6 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001329/0.1284, allocations: 59.77 kB / 459.7 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.368e-05/0.1284, allocations: 4 kB / 459.7 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.231e-05/0.1285, allocations: 35.84 kB / 459.7 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.237e-05/0.1286, allocations: 23.91 kB / 459.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.538e-06/0.1286, allocations: 4 kB / 459.8 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.1288, allocations: 75.84 kB / 459.8 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.108e-05/0.1288, allocations: 39.84 kB / 459.9 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.422e-05/0.1289, allocations: 27.75 kB / 459.9 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001893/0.1291, allocations: 119.8 kB / 460 MB, free: 4.887 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1291, allocations: 4 kB / 460 MB, free: 4.883 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1291, allocations: 3.938 kB / 460 MB, free: 4.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.1291, allocations: 0 / 460 MB, free: 4.879 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0004331/0.1295, allocations: 440.8 kB / 460.5 MB, free: 4.395 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.1296, allocations: 15.89 kB / 460.5 MB, free: 4.379 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.765e-05/0.1296, allocations: 38.73 kB / 460.5 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.261e-05/0.1297, allocations: 12.75 kB / 460.5 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001828/0.1299, allocations: 188.1 kB / 460.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.1299, allocations: 384 / 460.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.1299, allocations: 3.938 kB / 460.7 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001378/0.13, allocations: 93.61 kB / 460.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.1301, allocations: 0 / 460.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-06/0.1301, allocations: 4 kB / 460.8 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1301, allocations: 0 / 460.8 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.597e-05/0.1301, allocations: 59.97 kB / 460.9 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001734/0.1303, allocations: 173.6 kB / 461 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001106/0.1304, allocations: 98.5 kB / 461.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.07e-05/0.1305, allocations: 88.8 kB / 461.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.933e-06/0.1305, allocations: 0 / 461.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.1306, allocations: 38.56 kB / 461.3 MB, free: 3.473 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 9.52e-07/0.1306, allocations: 7.875 kB / 461.3 MB, free: 3.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000419/0.131, allocations: 310.2 kB / 461.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.1311, allocations: 89.11 kB / 461.7 MB, free: 3.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.1312, allocations: 133.8 kB / 461.8 MB, free: 2.906 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.1312, allocations: 29.7 kB / 461.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.166e-05/0.1313, allocations: 88.58 kB / 461.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.801e-05/0.1313, allocations: 74.81 kB / 462 MB, free: 2.707 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.768e-05/0.1314, allocations: 29.73 kB / 462 MB, free: 2.672 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1315, allocations: 330.8 kB / 462.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.389e-05/0.1316, allocations: 59.92 kB / 462.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.261e-05/0.1317, allocations: 51.97 kB / 462.4 MB, free: 2.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002325/0.132, allocations: 250.5 kB / 462.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.132, allocations: 3.938 kB / 462.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002254/0.1322, allocations: 219.2 kB / 462.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.233e-05/0.1323, allocations: 60.02 kB / 463 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.1323, allocations: 3.984 kB / 463 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.1323, allocations: 4.062 kB / 463 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.1323, allocations: 4 kB / 463 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.1324, allocations: 0 / 463 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.501e-05/0.1324, allocations: 11.84 kB / 463 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.1324, allocations: 8 kB / 463 MB, free: 1.648 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.0001632/0.1326, allocations: 199.4 kB / 463.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.31e-05/0.1326, allocations: 15.81 kB / 463.2 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.403e-05/0.1326, allocations: 5.188 kB / 463.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.1326, allocations: 4 kB / 463.2 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1327, allocations: 4 kB / 463.2 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.1327, allocations: 0 / 463.2 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.1328, allocations: 209.4 kB / 463.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1328, allocations: 0 / 463.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.354e-06/0.1329, allocations: 4 kB / 463.4 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.163e-06/0.1329, allocations: 0 / 463.4 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.1329, allocations: 4 kB / 463.4 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1329, allocations: 0 / 463.4 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1329, allocations: 0 / 463.4 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005111/0.1334, allocations: 0.5133 MB / 463.9 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.851e-05/0.1335, allocations: 88.95 kB / 464 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/0.1335, allocations: 11.94 kB / 464 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.503e-05/0.1335, allocations: 4 kB / 464 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.765e-05/0.1335, allocations: 3.984 kB / 464 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.079e-05/0.1336, allocations: 4 kB / 464 MB, free: 496 kB / 334.1 MB Notification: Performance of sorting global known variables: time 5.641e-05/0.1336, allocations: 107.2 kB / 464.2 MB, free: 388 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1336, allocations: 0 / 464.2 MB, free: 388 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002353/0.1339, allocations: 47.94 kB / 464.2 MB, free: 340 kB / 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.0008926/0.1348, allocations: 1.063 MB / 465.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008633/0.1356, allocations: 0.7062 MB / 466 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1357, allocations: 0 / 466 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004636/0.1361, allocations: 0.5695 MB / 466.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002382/0.1364, allocations: 27.05 kB / 466.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002612/0.139, allocations: 2.437 MB / 469 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.1394, allocations: 0.7239 MB / 469.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.264e-05/0.1394, allocations: 4 kB / 469.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.684e-05/0.1394, allocations: 23.44 kB / 469.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1394, allocations: 0 / 469.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02151/0.161, allocations: 3.555 MB / 473.3 MB, free: 7.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.641/7.802, allocations: 6.469 kB / 473.3 MB, free: 7.164 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc2.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches