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.001289/0.001289, allocations: 113.4 kB / 17.05 MB, free: 6.082 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.001245/0.001245, allocations: 189.4 kB / 17.99 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.449/1.449, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1854/0.1854, allocations: 38.04 MB / 329.9 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 59.91 kB / 457.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3882/0.3902, allocations: 58.06 MB / 0.5036 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2): time 0.003247/0.3935, allocations: 2.045 MB / 0.5056 GB, free: 5.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000799/0.3943, allocations: 0.5255 MB / 0.5061 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.164e-05/0.3943, allocations: 1.062 kB / 0.5061 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001283/0.3945, allocations: 10.36 kB / 0.5061 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.273e-05/0.3946, allocations: 24.45 kB / 0.5062 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003359/0.3949, allocations: 67.55 kB / 0.5062 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001252/0.3951, allocations: 71.48 kB / 0.5063 GB, free: 5.543 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.9e-05/0.3951, allocations: 2.766 kB / 0.5063 GB, free: 5.543 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.751e-05/0.3952, allocations: 29.59 kB / 0.5063 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.727e-05/0.3953, allocations: 24.81 kB / 0.5064 GB, free: 5.523 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.678e-06/0.3953, allocations: 0 / 0.5064 GB, free: 5.523 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001764/0.3955, allocations: 83.34 kB / 0.5064 GB, free: 5.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.25e-05/0.3955, allocations: 28.23 kB / 0.5065 GB, free: 5.484 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.254e-05/0.3956, allocations: 32.64 kB / 0.5065 GB, free: 5.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002022/0.3958, allocations: 122 kB / 0.5066 GB, free: 5.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3958, allocations: 0 / 0.5066 GB, free: 5.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3958, allocations: 4 kB / 0.5066 GB, free: 5.426 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.3958, allocations: 2.219 kB / 0.5066 GB, free: 5.426 MB / 382.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.0003481/0.3962, allocations: 440 kB / 0.507 GB, free: 4.992 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.3962, allocations: 13.77 kB / 0.507 GB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.89e-05/0.3962, allocations: 45.38 kB / 0.5071 GB, free: 4.941 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.3e-05/0.3963, allocations: 13.81 kB / 0.5071 GB, free: 4.934 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.3964, allocations: 191.5 kB / 0.5073 GB, free: 4.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.3965, allocations: 2.344 kB / 0.5073 GB, free: 4.719 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.3965, allocations: 3.938 kB / 0.5073 GB, free: 4.715 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001522/0.3966, allocations: 91.31 kB / 0.5074 GB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.3966, allocations: 0 / 0.5074 GB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.3967, allocations: 2.328 kB / 0.5074 GB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.178e-06/0.3967, allocations: 0 / 0.5074 GB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.402e-05/0.3968, allocations: 68.25 kB / 0.5074 GB, free: 4.645 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001274/0.3969, allocations: 179.4 kB / 0.5076 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.397, allocations: 100.9 kB / 0.5077 GB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.581e-05/0.3971, allocations: 82.8 kB / 0.5078 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.318e-06/0.3971, allocations: 5.25 kB / 0.5078 GB, free: 4.344 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.831e-05/0.3971, allocations: 36.64 kB / 0.5078 GB, free: 4.301 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.032e-06/0.3971, allocations: 0 / 0.5078 GB, free: 4.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004867/0.3976, allocations: 303 kB / 0.5081 GB, free: 4.191 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/0.3977, allocations: 94.84 kB / 0.5082 GB, free: 4.098 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.3978, allocations: 134.4 kB / 0.5083 GB, free: 3.988 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.447e-06/0.3978, allocations: 26.22 kB / 0.5084 GB, free: 3.957 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.521e-05/0.3979, allocations: 98.22 kB / 0.5085 GB, free: 3.863 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.21e-05/0.3979, allocations: 75.48 kB / 0.5085 GB, free: 3.805 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.601e-05/0.398, allocations: 27.47 kB / 0.5086 GB, free: 3.785 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.785e-05/0.3981, allocations: 328.1 kB / 0.5089 GB, free: 3.465 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.694e-05/0.3981, allocations: 59.33 kB / 0.5089 GB, free: 3.449 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.52e-05/0.3982, allocations: 57.31 kB / 0.509 GB, free: 3.438 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002413/0.3985, allocations: 243.5 kB / 0.5092 GB, free: 3.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3985, allocations: 7.875 kB / 0.5092 GB, free: 3.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000239/0.3987, allocations: 227.2 kB / 0.5094 GB, free: 3.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.505e-05/0.3988, allocations: 72.08 kB / 0.5095 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.3988, allocations: 0 / 0.5095 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.3988, allocations: 1.062 kB / 0.5095 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.834e-06/0.3988, allocations: 0.7031 kB / 0.5095 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.3989, allocations: 0 / 0.5095 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.783e-05/0.3989, allocations: 13.14 kB / 0.5095 GB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.3989, allocations: 5.031 kB / 0.5095 GB, free: 3.18 MB / 382.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.0001546/0.3991, allocations: 195.3 kB / 0.5097 GB, free: 3.027 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.515e-05/0.3991, allocations: 16.16 kB / 0.5097 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.786e-05/0.3991, allocations: 13.16 kB / 0.5097 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.3991, allocations: 0 / 0.5097 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3992, allocations: 1.156 kB / 0.5097 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3992, allocations: 0.5625 kB / 0.5097 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001295/0.3993, allocations: 207.6 kB / 0.5099 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3993, allocations: 0 / 0.5099 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.52e-07/0.3993, allocations: 0 / 0.5099 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.3993, allocations: 2.094 kB / 0.5099 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.3993, allocations: 3.625 kB / 0.5099 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.3993, allocations: 5.344 kB / 0.5099 GB, free: 2.793 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3993, allocations: 8.641 kB / 0.51 GB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005985/0.3999, allocations: 0.5028 MB / 0.5104 GB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.459e-05/0.4, allocations: 93.06 kB / 0.5105 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/0.4, allocations: 9.062 kB / 0.5105 GB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.697e-05/0.4001, allocations: 4.125 kB / 0.5105 GB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.837e-05/0.4001, allocations: 2.031 kB / 0.5105 GB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.4001, allocations: 5.578 kB / 0.5106 GB, free: 2.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.264e-05/0.4002, allocations: 106.9 kB / 0.5107 GB, free: 2.418 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4002, allocations: 4.031 kB / 0.5107 GB, free: 2.414 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003102/0.4005, allocations: 45.84 kB / 0.5107 GB, free: 2.41 MB / 382.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.0009143/0.4014, allocations: 1.057 MB / 0.5117 GB, free: 1.699 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007178/0.4022, allocations: 0.7015 MB / 0.5124 GB, free: 1.363 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.4022, allocations: 5.156 kB / 0.5124 GB, free: 1.359 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004411/0.4026, allocations: 0.5678 MB / 0.513 GB, free: 1.051 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002702/0.4029, allocations: 17.73 kB / 0.513 GB, free: 1.051 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002853/0.4058, allocations: 2.481 MB / 0.5154 GB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.4062, allocations: 0.7197 MB / 0.5161 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.008e-05/0.4062, allocations: 2.406 kB / 0.5161 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.465e-05/0.4063, allocations: 30.8 kB / 0.5162 GB, free: 14.87 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4063, allocations: 4.531 kB / 0.5162 GB, free: 14.86 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02808/0.4344, allocations: 3.594 MB / 0.5197 GB, free: 14.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.805/8.24, allocations: 17 kB / 0.5197 GB, free: 14.36 MB / 398.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