Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.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_matrixEqCirc3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",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.00155/0.00155, allocations: 105.3 kB / 17.06 MB, free: 6.02 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.002111/0.002111, allocations: 192 kB / 18 MB, free: 5.098 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.406/1.406, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1956/0.1956, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 63.91 kB / 457.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.3861, allocations: 58.07 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.003436/0.3895, allocations: 2.041 MB / 0.5056 GB, free: 6.039 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007922/0.3904, allocations: 0.5223 MB / 0.5061 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.381e-05/0.3904, allocations: 1.281 kB / 0.5061 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001555/0.3906, allocations: 17.08 kB / 0.5062 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.574e-05/0.3907, allocations: 25.88 kB / 0.5062 GB, free: 5.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003321/0.391, allocations: 67.31 kB / 0.5062 GB, free: 5.633 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001233/0.3912, allocations: 58.55 kB / 0.5063 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.068e-05/0.3912, allocations: 3.062 kB / 0.5063 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.244e-05/0.3913, allocations: 29.5 kB / 0.5063 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.108e-05/0.3914, allocations: 28.75 kB / 0.5064 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.16e-05/0.3914, allocations: 5.25 kB / 0.5064 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.3916, allocations: 74.53 kB / 0.5064 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.617e-05/0.3916, allocations: 45.23 kB / 0.5065 GB, free: 5.547 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.385e-05/0.3917, allocations: 46.06 kB / 0.5065 GB, free: 5.512 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002327/0.3919, allocations: 151.8 kB / 0.5067 GB, free: 5.465 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3919, allocations: 1.031 kB / 0.5067 GB, free: 5.465 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3919, allocations: 0 / 0.5067 GB, free: 5.465 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.392, allocations: 0 / 0.5067 GB, free: 5.465 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0004019/0.3924, allocations: 489.4 kB / 0.5071 GB, free: 5.008 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.3924, allocations: 12.8 kB / 0.5071 GB, free: 5.004 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.584e-05/0.3925, allocations: 49.53 kB / 0.5072 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.628e-05/0.3925, allocations: 21.95 kB / 0.5072 GB, free: 4.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.3927, allocations: 202.8 kB / 0.5074 GB, free: 4.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/0.3927, allocations: 1.156 kB / 0.5074 GB, free: 4.719 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.909e-06/0.3927, allocations: 1.922 kB / 0.5074 GB, free: 4.719 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001996/0.3929, allocations: 128.8 kB / 0.5075 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.3929, allocations: 0 / 0.5075 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.768e-06/0.3929, allocations: 1.938 kB / 0.5075 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.3929, allocations: 3.938 kB / 0.5075 GB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001046/0.393, allocations: 98.55 kB / 0.5076 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001474/0.3932, allocations: 201.2 kB / 0.5078 GB, free: 4.418 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000168/0.3934, allocations: 153 kB / 0.508 GB, free: 4.336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.3935, allocations: 137.9 kB / 0.5081 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.507e-06/0.3935, allocations: 0 / 0.5081 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.883e-05/0.3935, allocations: 36.33 kB / 0.5081 GB, free: 4.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 9.12e-07/0.3935, allocations: 1.125 kB / 0.5081 GB, free: 4.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0006121/0.3942, allocations: 479.2 kB / 0.5086 GB, free: 4.078 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/0.3942, allocations: 111.8 kB / 0.5087 GB, free: 3.977 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.3943, allocations: 147.8 kB / 0.5088 GB, free: 3.859 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.043e-05/0.3944, allocations: 26.92 kB / 0.5089 GB, free: 3.828 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.427e-05/0.3944, allocations: 99.12 kB / 0.509 GB, free: 3.734 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.125e-05/0.3945, allocations: 138.3 kB / 0.5091 GB, free: 3.625 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.361e-05/0.3946, allocations: 32.12 kB / 0.5091 GB, free: 3.605 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.915e-05/0.3946, allocations: 336.2 kB / 0.5094 GB, free: 3.281 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.697e-05/0.3947, allocations: 93.06 kB / 0.5095 GB, free: 3.258 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.828e-05/0.3948, allocations: 94.89 kB / 0.5096 GB, free: 3.234 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003344/0.3952, allocations: 368.4 kB / 0.51 GB, free: 3.102 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3952, allocations: 0 / 0.51 GB, free: 3.102 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000323/0.3955, allocations: 324.5 kB / 0.5103 GB, free: 2.977 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.946e-05/0.3956, allocations: 85.44 kB / 0.5104 GB, free: 2.938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3956, allocations: 1.25 kB / 0.5104 GB, free: 2.938 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.3957, allocations: 0 / 0.5104 GB, free: 2.938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.464e-06/0.3957, allocations: 4.797 kB / 0.5104 GB, free: 2.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.3957, allocations: 1.312 kB / 0.5104 GB, free: 2.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.942e-05/0.3957, allocations: 19.06 kB / 0.5104 GB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.868e-05/0.3958, allocations: 11.03 kB / 0.5104 GB, free: 2.918 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.0001948/0.396, allocations: 236.6 kB / 0.5106 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.378e-05/0.396, allocations: 20.81 kB / 0.5106 GB, free: 2.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.097e-05/0.396, allocations: 14.3 kB / 0.5107 GB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.396, allocations: 1.641 kB / 0.5107 GB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3961, allocations: 0 / 0.5107 GB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3961, allocations: 0.7031 kB / 0.5107 GB, free: 2.734 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.3962, allocations: 230.4 kB / 0.5109 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.3962, allocations: 0 / 0.5109 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.72e-07/0.3962, allocations: 9.031 kB / 0.5109 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3962, allocations: 0.5625 kB / 0.5109 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.3963, allocations: 6.531 kB / 0.5109 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.3963, allocations: 2.188 kB / 0.5109 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3963, allocations: 3.938 kB / 0.5109 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.3974, allocations: 0.9033 MB / 0.5118 GB, free: 2.246 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.91e-05/0.3974, allocations: 98.86 kB / 0.5119 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.127e-05/0.3975, allocations: 6.641 kB / 0.5119 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.341e-05/0.3975, allocations: 10.38 kB / 0.5119 GB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.63e-05/0.3975, allocations: 7.141 kB / 0.5119 GB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.3976, allocations: 6.438 kB / 0.5119 GB, free: 2.129 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.742e-05/0.3976, allocations: 116 kB / 0.512 GB, free: 2.043 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3976, allocations: 0 / 0.512 GB, free: 2.043 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002984/0.3979, allocations: 62.56 kB / 0.5121 GB, free: 2.039 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.001338/0.3993, allocations: 1.464 MB / 0.5135 GB, free: 1.246 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001686/0.401, allocations: 1.585 MB / 0.5151 GB, free: 436 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.401, allocations: 0 / 0.5151 GB, free: 436 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.4022, allocations: 1.366 MB / 0.5164 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.4025, allocations: 32.55 kB / 0.5164 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004139/0.4067, allocations: 3.465 MB / 0.5198 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.407, allocations: 0.7498 MB / 0.5205 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.271e-05/0.4071, allocations: 1.531 kB / 0.5205 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.693e-05/0.4071, allocations: 41.38 kB / 0.5206 GB, free: 13.21 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4071, allocations: 0 / 0.5206 GB, free: 13.21 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02646/0.4336, allocations: 4.878 MB / 0.5253 GB, free: 12.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.784/8.217, allocations: 14.33 kB / 0.5254 GB, free: 12.62 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_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_matrixEqCirc3.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches