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.00149/0.00149, allocations: 113 kB / 17.07 MB, free: 6.008 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.001726/0.001726, allocations: 189.4 kB / 18 MB, free: 5.09 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.482/1.482, allocations: 222.9 MB / 241.7 MB, free: 15.23 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.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001969/0.00197, allocations: 59.91 kB / 457.7 MB, free: 7.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3767/0.3787, allocations: 58.06 MB / 0.5036 GB, free: 7.406 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.003215/0.382, allocations: 2.045 MB / 0.5056 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007468/0.3827, allocations: 0.5175 MB / 0.5061 GB, free: 5.629 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.413e-05/0.3828, allocations: 1.219 kB / 0.5061 GB, free: 5.629 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.383, allocations: 10.44 kB / 0.5061 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.069e-05/0.3831, allocations: 28.98 kB / 0.5062 GB, free: 5.609 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003755/0.3835, allocations: 72 kB / 0.5062 GB, free: 5.578 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001174/0.3836, allocations: 58.09 kB / 0.5063 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.83e-05/0.3836, allocations: 4.656 kB / 0.5063 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.744e-05/0.3837, allocations: 33.25 kB / 0.5063 GB, free: 5.543 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.02e-05/0.3838, allocations: 27.5 kB / 0.5064 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.3838, allocations: 0.9688 kB / 0.5064 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001873/0.384, allocations: 78.11 kB / 0.5064 GB, free: 5.504 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.666e-05/0.3841, allocations: 42.66 kB / 0.5065 GB, free: 5.492 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.716e-05/0.3841, allocations: 46.19 kB / 0.5065 GB, free: 5.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002425/0.3844, allocations: 152 kB / 0.5067 GB, free: 5.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3844, allocations: 4 kB / 0.5067 GB, free: 5.406 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3844, allocations: 0 / 0.5067 GB, free: 5.406 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.3844, allocations: 0 / 0.5067 GB, free: 5.406 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.0004359/0.3849, allocations: 489.7 kB / 0.5071 GB, free: 4.949 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.3849, allocations: 12.64 kB / 0.5071 GB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.507e-05/0.385, allocations: 45.3 kB / 0.5072 GB, free: 4.902 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.893e-05/0.385, allocations: 19.02 kB / 0.5072 GB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000191/0.3852, allocations: 209 kB / 0.5074 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.412e-06/0.3852, allocations: 1.188 kB / 0.5074 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.3852, allocations: 0.9688 kB / 0.5074 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.3854, allocations: 130.1 kB / 0.5075 GB, free: 4.605 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.3854, allocations: 0 / 0.5075 GB, free: 4.605 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.3855, allocations: 0 / 0.5075 GB, free: 4.605 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.3855, allocations: 5.531 kB / 0.5075 GB, free: 4.602 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.3856, allocations: 94.61 kB / 0.5076 GB, free: 4.578 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001597/0.3858, allocations: 204 kB / 0.5078 GB, free: 4.359 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.3859, allocations: 157.4 kB / 0.508 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001341/0.3861, allocations: 143.2 kB / 0.5081 GB, free: 4.207 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.164e-05/0.3861, allocations: 0 / 0.5081 GB, free: 4.207 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.714e-05/0.3861, allocations: 31.62 kB / 0.5081 GB, free: 4.168 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.173e-06/0.3861, allocations: 3.938 kB / 0.5081 GB, free: 4.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007046/0.3868, allocations: 479 kB / 0.5086 GB, free: 4.012 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.977e-05/0.3869, allocations: 109.3 kB / 0.5087 GB, free: 3.914 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.387, allocations: 145 kB / 0.5088 GB, free: 3.797 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.101e-05/0.387, allocations: 26.89 kB / 0.5089 GB, free: 3.766 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.385e-05/0.3871, allocations: 102.9 kB / 0.509 GB, free: 3.668 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.3872, allocations: 134.8 kB / 0.5091 GB, free: 3.562 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.753e-05/0.3872, allocations: 35.64 kB / 0.5091 GB, free: 3.539 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.955e-05/0.3873, allocations: 336.2 kB / 0.5095 GB, free: 3.215 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.3874, allocations: 90.02 kB / 0.5095 GB, free: 3.195 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.3876, allocations: 94.17 kB / 0.5096 GB, free: 3.172 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003395/0.3879, allocations: 364.2 kB / 0.51 GB, free: 3.043 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.3879, allocations: 1.094 kB / 0.51 GB, free: 3.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003407/0.3883, allocations: 326.8 kB / 0.5103 GB, free: 2.914 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.337e-05/0.3884, allocations: 85.44 kB / 0.5104 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3884, allocations: 1.25 kB / 0.5104 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.3884, allocations: 0.7969 kB / 0.5104 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.124e-06/0.3884, allocations: 0 / 0.5104 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.3884, allocations: 5.344 kB / 0.5104 GB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.227e-05/0.3885, allocations: 19.12 kB / 0.5104 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.973e-05/0.3885, allocations: 8.25 kB / 0.5104 GB, free: 2.859 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.0002004/0.3887, allocations: 235.4 kB / 0.5106 GB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.966e-05/0.3888, allocations: 25.14 kB / 0.5106 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.564e-05/0.3888, allocations: 10.39 kB / 0.5107 GB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3888, allocations: 1.703 kB / 0.5107 GB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.3888, allocations: 0 / 0.5107 GB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.3888, allocations: 3.938 kB / 0.5107 GB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002233/0.389, allocations: 235.1 kB / 0.5109 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3891, allocations: 0 / 0.5109 GB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.393e-06/0.3891, allocations: 5.625 kB / 0.5109 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3891, allocations: 0.6562 kB / 0.5109 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.303e-05/0.3891, allocations: 6.562 kB / 0.5109 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3891, allocations: 0 / 0.5109 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.3891, allocations: 4.844 kB / 0.5109 GB, free: 2.445 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.3902, allocations: 0.9002 MB / 0.5118 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.974e-05/0.3902, allocations: 99.08 kB / 0.5119 GB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.3903, allocations: 5.812 kB / 0.5119 GB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.436e-05/0.3903, allocations: 10.33 kB / 0.5119 GB, free: 2.078 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.323e-05/0.3904, allocations: 6.281 kB / 0.5119 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.069e-05/0.3904, allocations: 11.58 kB / 0.5119 GB, free: 2.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.309e-05/0.3905, allocations: 122.8 kB / 0.512 GB, free: 1.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3905, allocations: 0 / 0.512 GB, free: 1.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003058/0.3908, allocations: 67.38 kB / 0.5121 GB, free: 1.973 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.001288/0.3921, allocations: 1.455 MB / 0.5135 GB, free: 1.188 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001796/0.3939, allocations: 1.589 MB / 0.5151 GB, free: 372 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3939, allocations: 4.094 kB / 0.5151 GB, free: 368 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.3951, allocations: 1.367 MB / 0.5164 GB, free: 15.58 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.3955, allocations: 28.19 kB / 0.5164 GB, free: 15.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004595/0.4001, allocations: 3.463 MB / 0.5198 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004774/0.4006, allocations: 0.7457 MB / 0.5205 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.892e-05/0.4006, allocations: 1.938 kB / 0.5205 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.423e-05/0.4007, allocations: 45.05 kB / 0.5206 GB, free: 13.15 MB / 398.1 MB Notification: Performance of SimCode: time 8.91e-07/0.4007, allocations: 5 kB / 0.5206 GB, free: 13.15 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03129/0.432, allocations: 4.867 MB / 0.5253 GB, free: 12.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.922/8.354, allocations: 9.656 kB / 0.5254 GB, free: 12.58 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